aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-10 14:43:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-10 14:59:56 +0000
commit56bcbf6776b67ccfcb6499874c18fc56aa65b668 (patch)
treeb5cf134609fec70c858eacc8a0936811aed113b4 /main
parentf151770ca2944aa4b1478299d731cf9d6ada8003 (diff)
downloadaports-56bcbf6776b67ccfcb6499874c18fc56aa65b668.tar.bz2
aports-56bcbf6776b67ccfcb6499874c18fc56aa65b668.tar.xz
main/libwpd: moved to main
Diffstat (limited to 'main')
-rw-r--r--main/libwpd/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/libwpd/APKBUILD b/main/libwpd/APKBUILD
new file mode 100644
index 0000000000..cb5834cd8e
--- /dev/null
+++ b/main/libwpd/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=libwpd
+pkgver=0.10.0
+pkgrel=0
+pkgdesc="Import filter and tools for WordPerfect Documents"
+url="http://sourceforge.net/p/libwpd/"
+arch="all"
+license="MPL2"
+depends=""
+depends_dev="librevenge-dev"
+makedepends="$depends_dev doxygen"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
+source="http://downloads.sourceforge.net/project/libwpd/libwpd/libwpd-$pkgver/libwpd-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/libwpd-$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 \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+tools() {
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+md5sums="0773d79a1f240ef9f4f20242b13c5bb7 libwpd-0.10.0.tar.bz2"
+sha256sums="f2bf5d65156a351ce404550dd822c8db8ab8740b393f61dba828d1b2cb33fe91 libwpd-0.10.0.tar.bz2"
+sha512sums="fb3c069691e2c5caaa8181147824261a232fddc21ab825f3084b64354c8593efac023e4db9515163c975b400c661997ebf59d6137b960a5a5b86efeab0e0f254 libwpd-0.10.0.tar.bz2"