blob: f5a556b124ac8fdda9ade163ca0b054685cd3390 (
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
40
41
42
43
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=minizip
pkgver=1.2.11
pkgrel=0
pkgdesc="a library for manipulation with files from .zip archives"
arch="all"
license="zlib"
url="http://zlib.net"
depends=""
makedepends="automake autoconf libtool zlib-dev"
subpackages="$pkgname-dev"
options="!check"
source="http://zlib.net/zlib-$pkgver.tar.gz
zlib-1.2.8-minizip-include.patch"
_builddir="$srcdir/zlib-$pkgver"/contrib/minizip
prepare() {
local i
cd "$srcdir/zlib-$pkgver"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
autoreconf -vif || return 1
./configure --prefix=/usr \
--enable-static=no || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
sha512sums="73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae zlib-1.2.11.tar.gz
870bec30f994fb2ece41ab5a7f24de08daa5d0751744232f9971a345c186db98bd00bd04f466a8a3abc10b11c15f17461255fda630dd0a4eae9635b03b93b826 zlib-1.2.8-minizip-include.patch"
|