initial import
This commit is contained in:
26
zxing-cpp/PKGBUILD
Normal file
26
zxing-cpp/PKGBUILD
Normal file
@@ -0,0 +1,26 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=zxing-cpp
|
||||
pkgver=1.1.1
|
||||
pkgrel=1
|
||||
pkgdesc="A C++ library to decode QRCode"
|
||||
arch=(i686 x86_64)
|
||||
url="https://github.com/nu-book/zxing-cpp"
|
||||
license=(Apache-2.0)
|
||||
depends=(gcc-libs)
|
||||
makedepends=(cmake)
|
||||
source=($pkgname-$pkgver.tar.gz::"https://github.com/nu-book/zxing-cpp/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('c7d97df147602e31e58eede54413814378895e9710cf266de984b22965a9a3f4c67648a0bf936a8bc8b213b45def59d1e5b34d6ce516265333dd2c0430554dc7')
|
||||
|
||||
build() {
|
||||
cmake -B build -S $pkgname-$pkgver \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -Dm644 $pkgname-$pkgver/LICENSE -t $pkgdir/usr/share/licenses/$pkgname
|
||||
}
|
||||
Reference in New Issue
Block a user