diff options
Diffstat (limited to 'main/zlib')
-rw-r--r-- | main/zlib/APKBUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/zlib/APKBUILD b/main/zlib/APKBUILD new file mode 100644 index 0000000000..f497f2c114 --- /dev/null +++ b/main/zlib/APKBUILD @@ -0,0 +1,23 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=zlib +pkgver=1.2.3.3 +pkgrel=7 +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" +subpackages="$pkgname-dev $pkgname-doc" + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --libdir=/lib --shared + make || return 1 + make install 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/ +} + +md5sums="c444cf020e5f0e3323b11f5a2d8af8d3 zlib-1.2.3.3.tar.gz" |