mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
32 lines
834 B
Text
32 lines
834 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=zxing-cpp
|
|
pkgver=1.0.7
|
|
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/zxing-cpp/archive/v$pkgver.tar.gz"
|
|
subpackages="$pkgname-dev"
|
|
options="!check" # No tests
|
|
|
|
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="e6597157099e478c2afad413e8dc3347369aef6e1a76cff331c4d71f178be97dde23e8fe89c7147eab034e2aecf1660a66e2a951f60c32d2fb67635033c1a0c8 zxing-cpp-1.0.7.tar.gz"
|