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

build() {
        cd "$builddir"

        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="6cc52458508dd0375a5ae1d123cd1d7640f06f47f10c35c2a2260c1edb1e755b533621a1b3e21492737c1fb20adc39e04f6767380c320653b76f2d168f4a106c  laz-perf-1.1.0.tar.gz"