aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zxing-cpp/APKBUILD
blob: 79f78b7d45f3295b3f8c9b67b97e53586d84f98c (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.6
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="fa773ba7dfca6325419118221cfe555810e793dbffe5cae1c62056479fdd6d6a60c81fb88e3bc3bb71bc369b6899a8db64f4b18eb7f4d13b8ea4cdd2d51fa9c6  zxing-cpp-1.0.6.tar.gz"