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

pkgname="zlib-ng-git"
pkgver=2
pkgrel=1
epoch=3
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"
)
conflicts=(
	"zlib"
	"zlib-ng"
)
options=(
	"staticlibs"
)
source=(
	"git+${url}.git"
)
b2sums=(
	"SKIP"
)

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

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

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

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