blob: 5313f988fdd12a9fb9f42ed5aa1d3fe39a7bf357 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zlib
pkgver=1.2.3.4
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"
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --libdir=/lib --shared
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
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="70cad33163abe3c234939a5c63bf95ea zlib-1.2.3.4.tar.gz"
|