diff options
Diffstat (limited to 'main/zlib/APKBUILD')
-rw-r--r-- | main/zlib/APKBUILD | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/main/zlib/APKBUILD b/main/zlib/APKBUILD index f497f2c1..b9d1f799 100644 --- a/main/zlib/APKBUILD +++ b/main/zlib/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=zlib -pkgver=1.2.3.3 -pkgrel=7 +pkgver=1.2.3.4 +pkgrel=1 pkgdesc="A compression/decompression Library" license=custom:zlib url="http://www.gzip.org/zlib" @@ -10,14 +10,23 @@ source="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz" subpackages="$pkgname-dev $pkgname-doc" build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr --libdir=/lib --shared make || return 1 - make install DESTDIR="$pkgdir" || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install \ + pkgconfigdir="/usr/lib/pkgconfig" \ + LIBS="libz.so.1.2.3.4 libz.a" \ + DESTDIR="$pkgdir" || return 1 +} - # we want the zlib.pc be a part of -dev package - mkdir -p "$pkgdir"/usr/lib - mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/ +dev() { + default_dev + mkdir -p "$subpkgdir"/lib + mv "$pkgdir"/lib/libz.a "$subpkgdir"/lib/libz.a } -md5sums="c444cf020e5f0e3323b11f5a2d8af8d3 zlib-1.2.3.3.tar.gz" +md5sums="70cad33163abe3c234939a5c63bf95ea zlib-1.2.3.4.tar.gz" |