APKBUILD 1.01 KB
Newer Older
1
2
3
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=lz4
Stuart Cardall's avatar
Stuart Cardall committed
4
pkgver=1.8.1.2
Stuart Cardall's avatar
Stuart Cardall committed
5
pkgrel=0
6
pkgdesc="LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core."
A. Klitzing's avatar
A. Klitzing committed
7
url="https://github.com/lz4/lz4"
8
arch="all"
A. Klitzing's avatar
A. Klitzing committed
9
license="BSD"
Stuart Cardall's avatar
Stuart Cardall committed
10
checkdepends="diffutils"
11
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-tests:tests"
Stuart Cardall's avatar
Stuart Cardall committed
12
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
A. Klitzing's avatar
A. Klitzing committed
13
builddir="$srcdir"/$pkgname-$pkgver
14
15

build() {
A. Klitzing's avatar
A. Klitzing committed
16
	cd "$builddir"
Stuart Cardall's avatar
Stuart Cardall committed
17
18
19
20
21
	make PREFIX="/usr"
}

check() {
	cd "$builddir"
Stuart Cardall's avatar
Stuart Cardall committed
22
	make test
Stuart Cardall's avatar
Stuart Cardall committed
23
24
25
26
}

tests() {
	cd "$builddir"/tests
Stuart Cardall's avatar
Stuart Cardall committed
27
	mkdir -p "$subpkgdir"/usr/share/$pkgname
Stuart Cardall's avatar
Stuart Cardall committed
28
	rm -f *.c COPYING Makefile .gitignore
Stuart Cardall's avatar
Stuart Cardall committed
29
	cp -rf "$builddir"/tests "$subpkgdir"/usr/share/$pkgname
30
31
32
}

package() {
A. Klitzing's avatar
A. Klitzing committed
33
	cd "$builddir"
Stuart Cardall's avatar
Stuart Cardall committed
34
	make PREFIX="/usr" DESTDIR="$pkgdir" install
35
36
}

Stuart Cardall's avatar
Stuart Cardall committed
37
sha512sums="f4ed450bc05477cc6c2b42e6fe1fbb1fb0907f1d05b68b1d69d975b555ddb385550f204258e6d91642e14ce373815141dc218cda03b711793935d5458bc45c7f  lz4-1.8.1.2.tar.gz"