aboutsummaryrefslogtreecommitdiffstats
path: root/community/libdeflate/APKBUILD
blob: a69495f6f12a5dc33e3c3776ceed0425d2992d11 (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
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=libdeflate
pkgver=1.9
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() {
	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="
aecfa2414a4d22f5233cbe58385e1637b5cbe252e1d4dc55e20e7769908158190a22af11af175e5dfb376f3b4a90fcee58e25468ccb47a5d5b02ae2b248c58f3  libdeflate-1.9.tar.gz
"