aboutsummaryrefslogtreecommitdiffstats
path: root/community/libdeflate/APKBUILD
blob: 36baff0b6a6acb27cd789c5888e368a95dfde566 (plain) (blame)
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
38
39
40
41
42
43
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=libdeflate
pkgver=1.8
pkgrel=0
pkgdesc="Library for fast, whole-buffer DEFLATE-based compression and decompression"
url="https://github.com/ebiggers/libdeflate"
arch="all"
license="MIT"
checkdepends="
	zlib-dev
	"
subpackages="
	$pkgname-dev
	$pkgname-utils
	"
source="
	libdeflate-$pkgver.tar.gz::https://github.com/ebiggers/libdeflate/archive/v$pkgver.tar.gz
	"

# Build fails with Os, so we are using O2
export CFLAGS="$CFLAGS -O2"

build() {
	make PREFIX=/usr USE_SHARED_LIB=1 gunzip
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr USE_SHARED_LIB=1 install
	rm "$pkgdir"/usr/lib/libdeflate.a
}

utils() {
	pkgdesc="Command line utilities for the DEFLATE library"
	amove /usr/bin
}
sha512sums="
b40caecdf783487488a5bd8213304175348b9db9bc1efdf6d5222fb912f61698b5e196522195a3640d7ff61ba953a93c0c8f75e07f548ac8b9d9c5dd5a787544  libdeflate-1.8.tar.gz
"