aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zziplib
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-12 20:57:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-12 20:59:47 +0000
commit8a030e901a11d3f49ec0361e9d06dd9f6fbd86c3 (patch)
tree514abf2a69c51e4b9a8f0f35f1dd3a3628426b37 /testing/zziplib
parent47dbc672162b1dd33a1a6534af690cc0bb9d0949 (diff)
downloadaports-8a030e901a11d3f49ec0361e9d06dd9f6fbd86c3.tar.bz2
aports-8a030e901a11d3f49ec0361e9d06dd9f6fbd86c3.tar.xz
testing/zziplib: new aport
Lightweight library to easily extract data from zip files http://zziplib.sourceforge.net
Diffstat (limited to 'testing/zziplib')
-rw-r--r--testing/zziplib/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/zziplib/APKBUILD b/testing/zziplib/APKBUILD
new file mode 100644
index 0000000000..8189a1cac9
--- /dev/null
+++ b/testing/zziplib/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Mika Havela <mika.havela@gmail.com>
+pkgname=zziplib
+pkgver="0.13.62"
+pkgrel=0
+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="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"