* update zxing-cpp to 2.3.0-4

This commit is contained in:
Alexander Baldeck 2025-02-05 14:30:15 +01:00
parent 13ea370d99
commit da0973e1cb
3 changed files with 33 additions and 19 deletions

View File

@ -1,19 +1,20 @@
pkgbase = zxing-cpp
pkgdesc = A C++ library to decode QRCode
pkgver = 2.2.1
pkgrel = 1.1
url = https://github.com/nu-book/zxing-cpp
pkgdesc = An open-source, multi-format linear/matrix barcode image processing library implemented in C++
pkgver = 2.3.0
pkgrel = 4
url = https://github.com/zxing-cpp/zxing-cpp
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = Apache
license = Apache-2.0
checkdepends = gtest
makedepends = cmake
makedepends = gtest
makedepends = git
depends = gcc-libs
depends = glibc
source = https://github.com/nu-book/zxing-cpp/archive/v2.2.1/zxing-cpp-2.2.1.tar.gz
sha256sums = 02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635
source = git+https://github.com/zxing-cpp/zxing-cpp#tag=v2.3.0
sha256sums = 1042010b960c29e6d7c5cd99e8c2a887cf84febb918abeb0405bcf12aaf8543c
pkgname = zxing-cpp

View File

@ -0,0 +1,5 @@
[zxing-cpp]
source = 'github'
github = 'nu-book/zxing-cpp'
use_max_tag = true
prefix = 'v'

View File

@ -3,24 +3,32 @@
# Maintainer: Maxime Arthaud <maxime@arthaud.me>
pkgname=zxing-cpp
pkgver=2.2.1
pkgrel=1.1
pkgdesc='A C++ library to decode QRCode'
pkgver=2.3.0
pkgrel=4
pkgdesc='An open-source, multi-format linear/matrix barcode image processing library implemented in C++'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/nu-book/zxing-cpp'
license=(Apache)
url='https://github.com/zxing-cpp/zxing-cpp'
license=(Apache-2.0)
depends=(gcc-libs
glibc)
makedepends=(cmake gtest)
source=(https://github.com/nu-book/zxing-cpp/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635')
makedepends=(cmake
git)
checkdepends=(gtest)
source=(git+https://github.com/zxing-cpp/zxing-cpp#tag=v$pkgver)
sha256sums=('1042010b960c29e6d7c5cd99e8c2a887cf84febb918abeb0405bcf12aaf8543c')
prepare() {
cd $pkgname
git cherry-pick -n 82806f5f92173b8cb4e1e9bee13a2d07a33fb69f # Fix improper use of NDEBUG
}
build() {
cmake -B build -S $pkgname-$pkgver \
cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_EXAMPLES=OFF \
-DBUILD_UNIT_TESTS=ON
-DZXING_EXAMPLES=OFF \
-DZXING_UNIT_TESTS=ON \
-DZXING_C_API=ON
cmake --build build
}