aboutsummaryrefslogtreecommitdiffstats
path: root/main/zlib/APKBUILD
blob: 037819dfec168ead7ad734fe9ba77bfd8f86f3d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zlib
pkgver=1.2.3.9
pkgrel=0
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"

_builddir="$srcdir/$pkgname-$pkgver"
build() {
	cd "$_builddir"
	./configure --prefix=/usr --libdir=/lib --shared
	make || return 1
}

package() {
	cd "$_builddir"
	make install \
		pkgconfigdir="/usr/lib/pkgconfig" \
		DESTDIR="$pkgdir" || return 1
}

dev() {
	default_dev
	mkdir -p "$subpkgdir"/lib
	mv "$pkgdir"/lib/libz.a "$subpkgdir"/lib/libz.a
}

md5sums="e63390cc6cbd0722f70729307d4dd01d  zlib-1.2.3.9.tar.gz"