aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-17 01:44:31 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:46 +0000
commit6ed2981c4f590e066cf725602552db0b103843fb (patch)
tree6758313fff1f49a32ccc5e4c7b662b605d6d6c40
parentbce7dc1ef19bad02062062964188b9384ba8c89e (diff)
downloadaports-6ed2981c4f590e066cf725602552db0b103843fb.tar.gz
aports-6ed2981c4f590e066cf725602552db0b103843fb.tar.bz2
aports-6ed2981c4f590e066cf725602552db0b103843fb.tar.xz
main/zlib: add test suite, modernise
-rw-r--r--main/zlib/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/main/zlib/APKBUILD b/main/zlib/APKBUILD
index 88cbdb1d96..54b50ccfbc 100644
--- a/main/zlib/APKBUILD
+++ b/main/zlib/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zlib
pkgver=1.2.11
-pkgrel=0
+pkgrel=1
pkgdesc="A compression/decompression Library"
arch="all"
license="zlib"
@@ -10,37 +10,29 @@ depends=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://zlib.net/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- cd "$_builddir"
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ 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
+ --shared
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
+ 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
+ DESTDIR="$pkgdir"
}
md5sums="1c9f62f0778697a09d36121ead88e08e zlib-1.2.11.tar.gz"