diff options
author | Jacek Szafarkiewicz | 2021-03-12 10:34:19 +0100 |
---|---|---|
committer | Jacek Szafarkiewicz | 2021-03-12 10:34:19 +0100 |
commit | f73c8900c0697eb36f5bde56dee7d55faf3358e7 (patch) | |
tree | c4bf11d32c547f6278150743c65bbf7ae8052e99 /PKGBUILD | |
download | aur-f73c8900c0697eb36f5bde56dee7d55faf3358e7.tar.gz |
v2.0.0-RC2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0f6d0c6eecc5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Jacek Szafarkiewicz <szafar at linux dot pl> + +pkgname=zlib-ng +pkgver=2.0.0_RC2 +pkgrel=1 +pkgdesc="zlib replacement with optimizations for \"next generation\" systems" +arch=("any") +url="https://github.com/zlib-ng/zlib-ng" +license=("zlib") +depends=( + "glibc" +) +makedepends=( + "cmake" +) +provides=( + "zlib=1.2.11" + "zlib-ng" +) +conflicts=( + "zlib" + "zlib-ng" + "zlib-ng-git" +) +source=("https://github.com/zlib-ng/zlib-ng/archive/v${pkgver//_/-}.zip") +sha256sums=("e6190debf17c16810f015453c9c43c1f2a88ec96a95e050a3a9694d0a4ab9de2") + +build() { + cmake \ + -Wno-dev \ + -B build \ + -S "zlib-ng-${pkgver//_/-}" \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DZLIB_COMPAT=ON + + make -C build +} + +check() { + make \ + -C build \ + test +} + +package() { + make \ + -C build \ + install \ + DESTDIR="$pkgdir" \ + + install -D -m644 "zlib-ng-${pkgver//_/-}/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |