diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6dd26c1b8e76 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = zlib-ng-compat-git + pkgdesc = Zlib replacement with optimizations for next generation systems + pkgver = r1918.41faa084 + pkgrel = 1 + url = https://github.com/zlib-ng/zlib-ng + arch = x86_64 + arch = i686 + arch = pentium4 + arch = armv7h + arch = aarch64 + license = custom + makedepends = git + depends = glibc + provides = zlib + conflicts = zlib + conflicts = zlib-ng + options = !emptydirs + source = git+https://github.com/zlib-ng/zlib-ng.git + md5sums = SKIP + +pkgname = zlib-ng-compat-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1abad4cb08e6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |