aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-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"