aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmspack
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-05 12:58:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-05 13:37:25 +0000
commitcff04b3fb6d33fdbc51485b3a2a2106f5d5b2055 (patch)
treea55d3d8de31c77a3132cb2330809605efe4ee206 /main/libmspack
parent5b05ce386d0ce6e2b8204866dccd01213f0269c5 (diff)
downloadaports-cff04b3fb6d33fdbc51485b3a2a2106f5d5b2055.tar.bz2
aports-cff04b3fb6d33fdbc51485b3a2a2106f5d5b2055.tar.xz
main/libmspack: move from testing
needed by open-vm-tools
Diffstat (limited to 'main/libmspack')
-rw-r--r--main/libmspack/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/libmspack/APKBUILD b/main/libmspack/APKBUILD
new file mode 100644
index 0000000000..8032ef1441
--- /dev/null
+++ b/main/libmspack/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libmspack
+pkgver=0.5_alpha
+_ver=${pkgver/_/}
+pkgrel=0
+pkgdesc="Library for CAB and related files compression and decompression"
+url="http://www.cabextract.org.uk/libmspack/"
+arch="all"
+license="LGPLv2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://www.cabextract.org.uk/libmspack/libmspack-$_ver.tar.gz"
+
+_builddir="$srcdir"/libmspack-$_ver
+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 \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="3aa3f6b9ef101463270c085478fda1da libmspack-0.5alpha.tar.gz"
+sha256sums="8967f275525f5067b364cee43b73e44d0433668c39f9376dfff19f653d1c8110 libmspack-0.5alpha.tar.gz"
+sha512sums="6d4efa0f43c43185ef91c97c1518aa70f09109d7332cda7e12019e146ec9cb0f2065fb1b57683b48bae9a7eaf8e82eb94096644c6d25c56d45878f630b719231 libmspack-0.5alpha.tar.gz"