diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-02 07:49:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-02 07:49:51 +0000 |
commit | 78998cbc713cdc4c789fc3e6beccb99180018912 (patch) | |
tree | 84e3c21d21bb875967bea9e0711d9ced7efde823 /main/zlib/APKBUILD | |
parent | 4a948217d8c2c217de4649d1b320fee098883bf7 (diff) | |
download | aports-78998cbc713cdc4c789fc3e6beccb99180018912.tar.bz2 aports-78998cbc713cdc4c789fc3e6beccb99180018912.tar.xz |
main/zlib: upgrade to 1.2.3.7 + gzflush patch.
Diffstat (limited to 'main/zlib/APKBUILD')
-rw-r--r-- | main/zlib/APKBUILD | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/main/zlib/APKBUILD b/main/zlib/APKBUILD index cf98592f5c..11f1f87e94 100644 --- a/main/zlib/APKBUILD +++ b/main/zlib/APKBUILD @@ -1,22 +1,29 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=zlib pkgver=1.2.3.7 -pkgrel=0 +pkgrel=1 pkgdesc="A compression/decompression Library" license=custom:zlib url="http://www.gzip.org/zlib" depends= -source="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz" +source="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz + gzflush.patch" subpackages="$pkgname-dev $pkgname-doc" +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" + patch -p1 -i "$srcdir"/gzflush.patch +} + build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" ./configure --prefix=/usr --libdir=/lib --shared make || return 1 } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" make install \ pkgconfigdir="/usr/lib/pkgconfig" \ DESTDIR="$pkgdir" || return 1 @@ -28,4 +35,5 @@ dev() { mv "$pkgdir"/lib/libz.a "$subpkgdir"/lib/libz.a } -md5sums="323e45f54f321116a34950e8fbf5b6e7 zlib-1.2.3.7.tar.gz" +md5sums="323e45f54f321116a34950e8fbf5b6e7 zlib-1.2.3.7.tar.gz +36746b916479fcf14b7a4393bee2f2d6 gzflush.patch" |