From 14c9f494a9b9f71d25c483eb0bbe14e33321860b Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 14 Feb 2026 15:11:50 +0200 Subject: [PATCH] Update package version to 3.0.1 --- pkg.info | 8 ++++++-- source.sh | 14 +++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pkg.info b/pkg.info index 7f810ac..98590bb 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,11 @@ name: zxing-cpp description: C++ port of ZXing -version: 2.3.0 +version: 3.0.1 revision: 1 url: https://github.com/zxing-cpp/zxing-cpp license: Apache-2.0 +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: @@ -11,8 +13,10 @@ depends: - glibc make_depends: - cmake +check_depends: + - googletest downloads: - url: https://github.com/zxing-cpp/zxing-cpp/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 64e4139103fdbc57752698ee15b5f0b0f7af9a0331ecbdc492047e0772c417ba + checksum: de58cf0f49d5947616266b80c12d67b799af6de65ed2f2027a4e8dd418b3bd97 diff --git a/source.sh b/source.sh index ff531db..540d9e6 100644 --- a/source.sh +++ b/source.sh @@ -5,10 +5,22 @@ # The build function is executed in the source directory # This function is used to compile the source code build() { - cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DZXING_EXAMPLES=ON -DZXING_C_API=ON + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DZXING_EXAMPLES=ON \ + -DZXING_C_API=ON \ + -DZXING_USE_BUNDLED_ZINT=OFF \ + -DZXING_WRITERS=BOTH \ + -DZXING_UNIT_TESTS=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() { + ctest --test-dir build --output-on-failure +} + # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() {