diff options
author | Diab Neiroukh | 2020-05-01 07:00:14 +0100 |
---|---|---|
committer | Diab Neiroukh | 2020-05-01 07:00:14 +0100 |
commit | 713aa5cf38af97a0aa5bf0062f87229e0efbb42e (patch) | |
tree | 2248a3763a41a3f6f45e4eafe5e19b4b19825549 | |
parent | 745e8fa7008c4ddba3004df0b4ecbfcd1aa6dba2 (diff) | |
download | aur-713aa5cf38af97a0aa5bf0062f87229e0efbb42e.tar.gz |
🚀 RELEASE: Refactor PKGBUILD
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 28 insertions, 12 deletions
@@ -2,7 +2,7 @@ pkgbase = zlib-ng-git pkgdesc = zlib replacement with optimizations for "next generation" systems pkgver = 1.9.9 pkgrel = 1 - epoch = 1 + epoch = 2 url = https://github.com/zlib-ng/zlib-ng arch = any license = custom @@ -3,16 +3,32 @@ pkgname="zlib-ng-git" pkgver=1.9.9 pkgrel=1 -epoch=1 +epoch=2 pkgdesc="zlib replacement with optimizations for \"next generation\" systems" -arch=("any") +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") +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" @@ -24,14 +40,14 @@ b2sums=( build() { - cd "zlib-ng" + cd "zlib-ng" || exit ./configure --prefix="/opt/zlib-ng" --zlib-compat make } check() { - cd "zlib-ng" + cd "zlib-ng" || exit make test } @@ -39,7 +55,7 @@ package() { install -D -m644 "zlib-ng.conf" "${pkgdir}/etc/ld.so.conf.d/zlib-ng.conf" - cd "zlib-ng" + cd "zlib-ng" || exit make install DESTDIR="${pkgdir}" install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" |