aboutsummaryrefslogtreecommitdiffstats
path: root/testing/laz-perf/APKBUILD
blob: c8c3618a198dac70abad2b159a19fe99b54d6efa (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
33
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
pkgname=laz-perf
pkgver=1.3.0
pkgrel=0
pkgdesc="Alternative LAZ implementation for C++ and JavaScript"
url="https://github.com/hobu/laz-perf"
arch="all !armhf !armv7 !s390x"  # armhf: io_test segfaults
license="LGPL-2.0-or-later"
makedepends="cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/hobu/$pkgname/archive/$pkgver.tar.gz"

build() {
	mkdir build && cd build
	cmake .. \
	        -DCMAKE_INSTALL_PREFIX=/usr \
	        -DCMAKE_BUILD_TYPE=Release \
	        -DWITH_TESTS=ON
	make
}

check() {
	cd "$builddir"/build
	make test
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="4e6e5197a90bf98fe6784a56e940070ad640ee2791443b9232960fd0f7639cc8d48d5c13df0cfc228e6be5fccd600afb1c171cb5e127bd874688e0ab231c25a8  laz-perf-1.3.0.tar.gz"