APKBUILD 1.03 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 5
pkgver=1.9.1
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"
Sören Tempel's avatar
Sören Tempel committed
9
license="BSD-2-Clause GPL-2.0-only"
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"
22
	make check
Stuart Cardall's avatar
Stuart Cardall committed
23 24 25 26
}

tests() {
	cd "$builddir"/tests
27
	mkdir -p "$subpkgdir"/usr/share/$pkgname
Stuart Cardall's avatar
Stuart Cardall committed
28
	rm -f *.c COPYING Makefile .gitignore
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="536cdeb6dd73b4769cf9501ad312b004ab01699758534b47ca2eddbc815fd374a3caba40cde36f73a7a70e134065836b733e2b0c023c31740b877ef9317ccf3e  lz4-1.9.1.tar.gz"