blob: 11f1f87e9496bd2e113855fc5fcbeaa3f3bcaa2d (
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
33
34
35
36
37
38
39
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zlib
pkgver=1.2.3.7
pkgrel=1
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
gzflush.patch"
subpackages="$pkgname-dev $pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
patch -p1 -i "$srcdir"/gzflush.patch
}
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="323e45f54f321116a34950e8fbf5b6e7 zlib-1.2.3.7.tar.gz
36746b916479fcf14b7a4393bee2f2d6 gzflush.patch"
|