aboutsummaryrefslogtreecommitdiffstats
path: root/community/zxing-cpp/APKBUILD
blob: 39d27fe517f40b3220a867449357047a102a91a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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"