APKBUILD 699 Bytes
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
2
pkgname=zlib
Natanael Copa's avatar
Natanael Copa committed
3 4
pkgver=1.2.3.4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6 7
pkgdesc="A compression/decompression Library"
license=custom:zlib
url="http://www.gzip.org/zlib"
8
depends=
Natanael Copa's avatar
Natanael Copa committed
9 10 11 12
source="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"

build() {
Natanael Copa's avatar
Natanael Copa committed
13
	cd "$srcdir/$pkgname-$pkgver"
14
	./configure --prefix=/usr --libdir=/lib --shared
Natanael Copa's avatar
Natanael Copa committed
15
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
16 17 18 19
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
20
	make install DESTDIR="$pkgdir" || return 1
21 22

	# we want the zlib.pc be a part of -dev package
23
	mkdir -p "$pkgdir"/usr/lib
24
	mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/
Natanael Copa's avatar
Natanael Copa committed
25 26
}

Natanael Copa's avatar
Natanael Copa committed
27
md5sums="70cad33163abe3c234939a5c63bf95ea  zlib-1.2.3.4.tar.gz"