From bb882a72a693526d86b8d17f369df6f6a04c07b4 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sat, 31 Jul 2021 09:22:10 +0000 Subject: [PATCH] zlib: deprecate add zlib-ng --- pkgs/zlib-ng/build.sh | 31 +++++++++++++++++++++++++++++++ pkgs/zlib/build.sh | 5 +++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/zlib-ng/build.sh diff --git a/pkgs/zlib-ng/build.sh b/pkgs/zlib-ng/build.sh new file mode 100644 index 0000000..f41c715 --- /dev/null +++ b/pkgs/zlib-ng/build.sh @@ -0,0 +1,31 @@ +pkgname=zlib-ng +pkgver=2.0.5 + +fetch() { + curl -L "https://github.com/zlib-ng/zlib-ng/archive/refs/tags/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/build +} + +build() { + cd $pkgname-$pkgver + cd build + cmake -G Ninja ../ \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DZLIB_COMPAT=ON + + samu +} + +package() { + cd $pkgname-$pkgver + cd build + DESTDIR=$pkgdir samu install +} + +license() { + cd $pkgname-$pkgver + cat LICENSE.md +} diff --git a/pkgs/zlib/build.sh b/pkgs/zlib/build.sh index 90cc6f9..2f67af1 100644 --- a/pkgs/zlib/build.sh +++ b/pkgs/zlib/build.sh @@ -9,6 +9,11 @@ fetch() { } build() { + echo "=============" + echo " DEPRECATED: " + echo " USE ZLIB-NG " + echo "=============" + cd $pkgname-$pkgver ./configure \ --prefix=/usr