summaryrefslogtreecommitdiffstats
path: root/testing/zziplib/APKBUILD
blob: ec5ac935ec7752fa8c14b767ff873fdf6fde6b7d (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
47
48
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=zziplib
pkgver="0.13.62"
pkgrel=1
pkgdesc="Lightweight library to easily extract data from zip files"
url="http://zziplib.sourceforge.net"
arch="all"
license="LGPL/MIT"
depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev perl python"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="http://downloads.sourceforge.net/zziplib/zziplib-${pkgver}.tar.bz2"

_builddir="$srcdir/zziplib-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-static \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1
	rm "${pkgdir}"/usr/lib/*.la || return 1
}

utils() {
	pkgdesc="Utilities for the zziplib library"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="5fe874946390f939ee8f4abe9624b96c  zziplib-0.13.62.tar.bz2"