zxing-cpp-tools
989 bytes of
Bash
Created 9 months ago
by
yochanan
—
expires in 88 days
— public
Viewed
251 times
https://dpaste.com/FVQ3P5BB6
| # Maintainer: G. W. Sherman <gwsherman (at) proton.me>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Maxime Arthaud <maxime@arthaud.me>
pkgname=zxing-cpp-tools
pkgver=2.2.1
pkgrel=1
pkgdesc='Tools from the repo examples of ZXing-C++ (zxing-cpp)'
arch=(x86_64)
url='https://github.com/nu-book/zxing-cpp'
license=(Apache-2.0)
depends=(gcc-libs
git
glibc
zxing-cpp)
makedepends=(cmake)
checkdepends=(gtest)
source=(https://github.com/nu-book/zxing-cpp/archive/v$pkgver/zxing-cpp-$pkgver.tar.gz)
sha256sums=('02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635')
build() {
cmake -B build -S zxing-cpp-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_EXAMPLES=ON \
-DBUILD_UNIT_TESTS=ON
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package(){
install -Dm755 -t "$pkgdir"/usr/bin build/example/ZXing{Read,Writ}er
}
|
# Maintainer: G. W. Sherman <gwsherman (at) proton.me>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Maxime Arthaud <maxime@arthaud.me>
pkgname=zxing-cpp-tools
pkgver=2.2.1
pkgrel=1
pkgdesc='Tools from the repo examples of ZXing-C++ (zxing-cpp)'
arch=(x86_64)
url='https://github.com/nu-book/zxing-cpp'
license=(Apache-2.0)
depends=(gcc-libs
git
glibc
zxing-cpp)
makedepends=(cmake)
checkdepends=(gtest)
source=(https://github.com/nu-book/zxing-cpp/archive/v$pkgver/zxing-cpp-$pkgver.tar.gz)
sha256sums=('02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635')
build() {
cmake -B build -S zxing-cpp-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_EXAMPLES=ON \
-DBUILD_UNIT_TESTS=ON
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package(){
install -Dm755 -t "$pkgdir"/usr/bin build/example/ZXing{Read,Writ}er
}