summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16b09495baa680ef3e034e8936e82548b1aaf169 (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
# Maintainer: Diab Neiroukh <officiallazerl0rd@gmail.com>

pkgname="zlib-ng-git"
pkgver=1.9.9
pkgrel=1
epoch=1
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"
	./configure --prefix="/opt/zlib-ng" --zlib-compat
	make
}

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

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

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

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