# Maintainer: Natanael Copa pkgname=zlib pkgver=1.2.10 pkgrel=0 pkgdesc="A compression/decompression Library" arch="all" license="zlib" url="http://zlib.net" depends="" subpackages="$pkgname-dev $pkgname-doc" source="http://zlib.net/$pkgname-$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" } build() { cd "$_builddir" # we trade size for a little more speed. export CFLAGS="$CFLAGS -O2" CHOST="${CHOST}" ./configure \ --prefix=/usr \ --libdir=/lib \ --shared \ || return 1 make || return 1 } package() { cd "$_builddir" make install \ pkgconfigdir="/usr/lib/pkgconfig" \ DESTDIR="$pkgdir" || return 1 } dev() { default_dev mkdir -p "$subpkgdir"/lib # newer abuild might do this for us if [ -f "$pkgdir"/libz.a ]; then mv "$pkgdir"/lib/libz.a "$subpkgdir"/lib/libz.a fi } md5sums="d9794246f853d15ce0fcbf79b9a3cf13 zlib-1.2.10.tar.gz" sha256sums="8d7e9f698ce48787b6e1c67e6bff79e487303e66077e25cb9784ac8835978017 zlib-1.2.10.tar.gz" sha512sums="5fa71052a418a0f2b345fce28af9941bbd1c6ee276ce506ab3092157f15776ee41f96bb1799657227513b852913f96ac52dae8122a437f34b43933ee48d63ee0 zlib-1.2.10.tar.gz"