aboutsummaryrefslogtreecommitdiffstats
path: root/main/minizip/APKBUILD
blob: 01c1e6c04cf63a453218166d10f9b18624d4ae14 (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
44
45
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=minizip
pkgver=1.2.8
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"
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
}

md5sums="44d667c142d7cda120332623eab69f40  zlib-1.2.8.tar.gz
778dc4d8a9455d8f35257c3a19bc24e5  zlib-1.2.8-minizip-include.patch"
sha256sums="36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d  zlib-1.2.8.tar.gz
226d84018df7b7281b3b62df88a7d61cffcfc6c541895b453fe53662ce7ab2e5  zlib-1.2.8-minizip-include.patch"
sha512sums="ece209d4c7ec0cb58ede791444dc754e0d10811cbbdebe3df61c0fd9f9f9867c1c3ccd5f1827f847c005e24eef34fb5bf87b5d3f894d75da04f1797538290e4a  zlib-1.2.8.tar.gz
870bec30f994fb2ece41ab5a7f24de08daa5d0751744232f9971a345c186db98bd00bd04f466a8a3abc10b11c15f17461255fda630dd0a4eae9635b03b93b826  zlib-1.2.8-minizip-include.patch"