aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwpd
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-05-18 09:03:11 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-05-18 12:52:04 +0000
commitf6b7a07205a34f8cb4cf4e2afa75a459f1bc05a6 (patch)
tree88ea8a0cf4c6326da9df76097eabefe1cd8c9d58 /community/libwpd
parent0aad13ceb787512855c94c4692c2aa4ede57ce24 (diff)
downloadaports-f6b7a07205a34f8cb4cf4e2afa75a459f1bc05a6.tar.bz2
aports-f6b7a07205a34f8cb4cf4e2afa75a459f1bc05a6.tar.xz
community/libwpd: moved from main
Diffstat (limited to 'community/libwpd')
-rw-r--r--community/libwpd/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/community/libwpd/APKBUILD b/community/libwpd/APKBUILD
new file mode 100644
index 0000000000..2835182655
--- /dev/null
+++ b/community/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.1
+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"
+ update_config_sub || return 1
+ 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
+}
+
+tools() {
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+md5sums="79b56bcc349264d686a67994506ad199 libwpd-0.10.1.tar.bz2"
+sha256sums="efc20361d6e43f9ff74de5f4d86c2ce9c677693f5da08b0a88d603b7475a508d libwpd-0.10.1.tar.bz2"
+sha512sums="aa99a11675b76d6357cd6479ed4cc0e04cd42d9f6ef76da3627310b683c6528c05ebd5cd1c3fcd878f288e56a05d11d81e90b2a0c5d03d4fa9644eb6f16d955e libwpd-0.10.1.tar.bz2"