From 7e7cfc7aea742e85642cb3e16f0b8c7cb14d556f Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 7 Mar 2026 19:57:47 +0200 Subject: [PATCH] Update package version to 0.28.8 --- pkg.info | 25 ++++++++++++++++++++++--- source.sh | 19 +++++++------------ 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/pkg.info b/pkg.info index 66b17b1..d8153fc 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,28 @@ name: exiv2 description: Cross-platform C++ library and a command line utility to manage image metadata -version: 0.28.7 +version: 0.28.8 +revision: 1 url: https://exiv2.org/ license: GPL2-or-later +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["brotli", "curl", "expat", "gcc-libs", "gettext", "glibc", "inih", "zlib"] -make_depends: ["cmake", "googletest", "python3"] type: source +depends: + - brotli + - curl + - expat + - gcc-libs + - gettext + - glibc + - inih + - zlib +make_depends: + - cmake + - googletest + - python3 +downloads: + - url: https://github.com/Exiv2/exiv2/archive/v${BPM_PKG_VERSION}/exiv2-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: ea51b0609f58a9afa063b60daa1539948b62247721e154f4fff0ad3aec9f9756 diff --git a/source.sh b/source.sh index 3c21f5b..f0fbbb9 100644 --- a/source.sh +++ b/source.sh @@ -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 }