summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 504e7cb3b6f648305afe340395c769a24d5818e7 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Diab Neiroukh <officiallazerl0rd@gmail.com>

pkgname="zlib-ng-git"
pkgver=1.9.9
pkgrel=1
epoch=2
pkgdesc="zlib replacement with optimizations for \"next generation\" systems"
arch=(
	"any"
)
url="https://github.com/zlib-ng/zlib-ng"
license=(
	"custom"
)
depends=(
	"glibc"
)
makedepends=(
	"cmake"
	"git"
)
provides=(
	"zlib=1.2.11"
	"zlib-ng=1.9.9"
)
conflicts=(
	"zlib-ng"
)
options=(
	"staticlibs"
)
source=(
	"git+${url}.git"
	"zlib-ng.conf"
)
b2sums=(
	"SKIP"
	"bf6eb01985db45c6b209a981aa5dbb97c9533fac960cd92ad9aee2d7926f0ec0e133f7df65901ced722fc51bdb362c6bfa3442c8d023db079b6636d109856071"
)

build()
{
	cd "zlib-ng" || exit
	./configure --prefix="/opt/zlib-ng" --zlib-compat
	make
}

check()
{
	cd "zlib-ng" || exit
	make test
}

package()
{
	install -D -m644 "zlib-ng.conf" "${pkgdir}/etc/ld.so.conf.d/zlib-ng.conf"

	cd "zlib-ng" || exit
	make install DESTDIR="${pkgdir}"

	install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}