diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-02-03 07:42:34 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-02-03 17:29:17 +0000 |
commit | 09f3d8928f25691d4de1412feb35f3bf203251d6 (patch) | |
tree | 9a4071d15155dec55c3229316abb47039c771f11 /testing | |
parent | 4a28b634e9fdf94b90716a314f76c3e6c98a2772 (diff) | |
download | aports-09f3d8928f25691d4de1412feb35f3bf203251d6.tar.bz2 aports-09f3d8928f25691d4de1412feb35f3bf203251d6.tar.xz |
testing/libwpd: new aport
Import filter and tools for WordPerfect Documents
http://sourceforge.net/p/libwpd/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libwpd/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
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 <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" |