pkgs/zlib-ng/PKGBUILD

31 lines
649 B
Text
Raw Permalink Normal View History

2023-12-05 04:47:04 +00:00
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=zlib-ng
pkgver=2.1.5
pkgrel=1
2023-12-08 02:05:38 +00:00
pkgdesc="zlib replacement with optimizations for next generation systems"
url="https://github.com/zlib-ng/zlib-ng"
arch=("x86_64")
provices=("zlib")
license=("custom:zlib")
source=("$url/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=("3f6576971397b379d4205ae5451ff5a68edf6c103b2f03c4188ed7075fbb5f04")
2023-12-05 04:47:04 +00:00
build() {
2023-12-08 02:05:38 +00:00
cd "$pkgname-$pkgver"
2023-12-05 04:47:04 +00:00
2023-12-11 13:18:00 +00:00
CFLAGS="$CFLAGS -fPIC"
2023-12-08 02:05:38 +00:00
./configure \
--prefix=/usr \
--zlib-compat
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
make
2023-12-05 04:47:04 +00:00
}
package() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
make DESTDIR=$pkgdir install
ln -s libz.so.1.3.0.zlib-ng $pkgdir/usr/lib/libz.so.2.1.5
2023-12-05 04:47:04 +00:00
}