Compare commits

...
2 Commits
Author SHA1 Message Date
EnumDev 7fab0a5c40 Fix dependencies and enable QT examples 2026-02-14 20:28:34 +02:00
EnumDev 14c9f494a9 Update package version to 3.0.1 2026-02-14 15:11:50 +02:00
2 changed files with 28 additions and 4 deletions
+14 -3
View File
@@ -1,18 +1,29 @@
name: zxing-cpp
description: C++ port of ZXing
version: 2.3.0
revision: 1
version: 3.0.1
revision: 2
url: https://github.com/zxing-cpp/zxing-cpp
license: Apache-2.0
maintainers:
- [email protected]
architecture: any
type: source
depends:
- gcc-libs
- glibc
- zint
optional_depends:
- qt6-multimedia:For ZXingQtCamReader
make_depends:
- cmake
- opencv
- qt6-base
- qt6-declarative
- qt6-multimedia
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
+14 -1
View File
@@ -5,10 +5,23 @@
# 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_EXAMPLES_QT=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() {