aboutsummaryrefslogtreecommitdiffstats
path: root/main/zlib/APKBUILD
blob: f497f2c114b1a04c5fc4f26ee676cce501bcdd2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"