Update package version to 0.28.8

This commit is contained in:
2026-03-07 19:57:47 +02:00
parent f955c480d0
commit 7e7cfc7aea
2 changed files with 29 additions and 15 deletions
+7 -12
View File
@@ -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
}