You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
716 B

# Maintainer: Cory Sanin <corysanin@artixlinux.org>
# Maintainer: Maxime Arthaud <maxime@arthaud.me>
pkgname=zxing-cpp
pkgver=1.4.0
pkgrel=1
pkgdesc='A C++ library to decode QRCode'
arch=(x86_64)
url='https://github.com/nu-book/zxing-cpp'
license=(Apache)
depends=(gcc-libs)
makedepends=(cmake)
source=(https://github.com/nu-book/zxing-cpp/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('126767bb56f8a1f25ae84d233db2e9b9be50d71f5776092d0e170ca0f0ed1862')
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_EXAMPLES=OFF \
-DBUILD_BLACKBOX_TESTS=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}