aboutsummaryrefslogtreecommitdiffstats
path: root/main/libarchive/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-12 14:15:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-12 14:20:13 +0000
commit473789f01208bda1dc0e5eb9ad3d9d3d5f598b9c (patch)
tree44f730413b5e31d19f6c0f88a540fbcb56499192 /main/libarchive/APKBUILD
parent1412412db33b81d994c94efb7ac8bb892cd4fe2e (diff)
downloadaports-473789f01208bda1dc0e5eb9ad3d9d3d5f598b9c.tar.bz2
aports-473789f01208bda1dc0e5eb9ad3d9d3d5f598b9c.tar.xz
main/libarchive: moved from testing
Diffstat (limited to 'main/libarchive/APKBUILD')
-rw-r--r--main/libarchive/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/libarchive/APKBUILD b/main/libarchive/APKBUILD
new file mode 100644
index 0000000000..28a1cbc817
--- /dev/null
+++ b/main/libarchive/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libarchive
+pkgver=2.8.4
+pkgrel=1
+pkgdesc="library that can create and read several streaming archive formats"
+url="http://libarchive.googlecode.com/"
+arch="all"
+license="BSD"
+depends=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
+makedepends="zlib-dev bzip2-dev xz-dev acl-dev openssl-dev expat-dev"
+depends_dev="$makedepends"
+source="http://libarchive.googlecode.com/files/libarchive-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+build () {
+ cd "$_builddir"
+ ./configure --prefix=/usr --without-xml2
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+tools() {
+ pkgdesc="libarchive tools bsdtar and bsdcpio"
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="83b237a542f27969a8d68ac217dc3796 libarchive-2.8.4.tar.gz"