Update package version to 3.3.1
This commit is contained in:
@@ -21,23 +21,26 @@ build() {
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_TESTING=ON \
|
||||
..
|
||||
make
|
||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..
|
||||
cmake --build .
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
cd build
|
||||
make test
|
||||
|
||||
ctest
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
DESTDIR="$BPM_OUTPUT" cmake --install .
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/double-conversion/LICENSE
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/double-conversion/COPYING
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user