upgpkg: sbcl 2.2.11-1
[arch-packages.git] / zxing-cpp / trunk / PKGBUILD
blob8e057a9f9b226eaa790c33d39c6323f2dd7cf9e5
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Maxime Arthaud <maxime@arthaud.me>
4 pkgname=zxing-cpp
5 pkgver=1.4.0
6 pkgrel=1
7 pkgdesc='A C++ library to decode QRCode'
8 arch=(x86_64)
9 url='https://github.com/nu-book/zxing-cpp'
10 license=(Apache)
11 depends=(gcc-libs)
12 makedepends=(cmake)
13 source=(https://github.com/nu-book/zxing-cpp/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('126767bb56f8a1f25ae84d233db2e9b9be50d71f5776092d0e170ca0f0ed1862')
16 build() {
17   cmake -B build -S $pkgname-$pkgver \
18     -DCMAKE_INSTALL_PREFIX=/usr \
19     -DCMAKE_BUILD_TYPE=None \
20     -DBUILD_EXAMPLES=OFF \
21     -DBUILD_BLACKBOX_TESTS=OFF
22   cmake --build build
25 package() {
26   DESTDIR="$pkgdir" cmake --install build