From 09f3d8928f25691d4de1412feb35f3bf203251d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Tue, 3 Feb 2015 07:42:34 +0000 Subject: testing/libwpd: new aport Import filter and tools for WordPerfect Documents http://sourceforge.net/p/libwpd/ --- testing/libwpd/APKBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 testing/libwpd/APKBUILD diff --git a/testing/libwpd/APKBUILD b/testing/libwpd/APKBUILD new file mode 100644 index 0000000000..cb5834cd8e --- /dev/null +++ b/testing/libwpd/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Timo Teräs +# Maintainer: Timo Teräs +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" -- cgit v1.2.3