summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1abad4cb08e638e61c8916c72962ee2d86dff8f7 (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>

pkgname=zlib-ng-compat-git
pkgver=r1918.41faa084
pkgrel=1
pkgdesc='Zlib replacement with optimizations for next generation systems'
url='https://github.com/zlib-ng/zlib-ng'
arch=('x86_64' 'i686' 'pentium4' 'armv7h' 'aarch64')
license=('custom')
depends=('glibc')
makedepends=('git')
conflicts=('zlib' 'zlib-ng')
provides=('zlib')
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 --zlib-compat
	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"
}