mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-31 21:41:44 +01:00
32 lines
806 B
Plaintext
32 lines
806 B
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=zxing-cpp
|
|
pkgver=1.0.5
|
|
pkgrel=0
|
|
arch="all"
|
|
url="https://github.com/nu-book/zxing-cpp"
|
|
pkgdesc="C++ port of ZXing "
|
|
license="Apache-2.0"
|
|
makedepends="cmake"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/nu-book/$pkgname/archive/v$pkgver.tar.gz"
|
|
subpackages="$pkgname-dev"
|
|
|
|
build() {
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBRARY=ON
|
|
make
|
|
}
|
|
|
|
check() {
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" make install
|
|
}
|
|
|
|
sha512sums="7d50e3a597aa123ba9a71211b6096e03de71ccd15d408d08dba214df64de14d462f8d7e8a1dd094d59b8438a61f5c5c436c4d0549039c630270d509812967f65 zxing-cpp-1.0.5.tar.gz"
|