summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1eec35015c996b18ccaa1dcc2a31f113532e18b9 (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
# Maintainer: MGislv <mgislv at ceppo dot xyz>
# Contributor: Diab Neiroukh <lazerl0rd at thezest dot dev>
# Contributor: Jacek Szafarkiewicz <szafar at linux dot pl>

pkgname=zlib-ng-git
pkgver=r1918.41faa084
pkgrel=1
pkgdesc='Zlib data compression library for the next generation systems'
url='https://github.com/zlib-ng/zlib-ng'
arch=('x86_64' 'i686' 'pentium4' 'armv7h' 'aarch64')
license=('custom')
depends=('glibc')
makedepends=('git')
options=('!emptydirs')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
	cd zlib-ng
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd zlib-ng
	CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./configure --prefix=/usr
	make
}

check() {
	make -C zlib-ng test
}

package() {
	make DESTDIR="$pkgdir" -C zlib-ng install
	install -Dm644 zlib-ng/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}