Update package version to 0.28.8
This commit is contained in:
@@ -15,33 +15,28 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
||||
cmake -B build \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D EXIV2_ENABLE_VIDEO=yes \
|
||||
-D EXIV2_ENABLE_WEBREADY=yes \
|
||||
-D EXIV2_ENABLE_CURL=yes \
|
||||
-D EXIV2_BUILD_SAMPLES=no \
|
||||
-D CMAKE_SKIP_INSTALL_RPATH=ON ..
|
||||
make
|
||||
-D CMAKE_SKIP_INSTALL_RPATH=ON
|
||||
cmake --build 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 --test-dir build
|
||||
}
|
||||
|
||||
# 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 build
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/exiv2/COPYING
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user