mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
32 lines
641 B
Bash
32 lines
641 B
Bash
pkgname=zxing-cpp
|
|
pkgver=git20180320
|
|
pkgrel=1
|
|
_commit=5aad4744a3763d814df98a18886979893e638274
|
|
pkgdesc="A command-line tool to decode QRCode"
|
|
arch=(x86_64)
|
|
url="https://github.com/glassechidna/zxing-cpp"
|
|
license=(Apache)
|
|
depends=(gcc-libs)
|
|
makedepends=(git cmake opencv)
|
|
optdepends=('opencv: support for opencv')
|
|
source=("$pkgname::git+https://github.com/glassechidna/zxing-cpp.git#commit=$_commit")
|
|
sha512sums=('SKIP')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../$pkgname \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -fPIC"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|