diff options
Diffstat (limited to 'main/libodfgen')
-rw-r--r-- | main/libodfgen/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/main/libodfgen/APKBUILD b/main/libodfgen/APKBUILD new file mode 100644 index 0000000000..634a9861c1 --- /dev/null +++ b/main/libodfgen/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=libodfgen +pkgver=0.1.3 +pkgrel=0 +pkgdesc="Import filter and tools for Open Document Format" +url="http://sourceforge.net/projects/libwpd/" +arch="all" +license="MPL2" +depends="" +depends_dev="boost-dev librevenge-dev" +makedepends="$depends_dev pkgconfig doxygen" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://sourceforge.net/projects/libwpd/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz" + +_builddir="$srcdir"/$pkgname-$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 + update_config_sub +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --enable-fast-install \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="4e6e642609ddb62b13626aa6e7efe20f libodfgen-0.1.3.tar.xz" +sha256sums="d3a09d987e9c0955846cad1e8a885a9c7a76bfaff75d4c1b5626844c62808eba libodfgen-0.1.3.tar.xz" +sha512sums="c93abc1ce100c38876b70c1458515086f93b1c376df905fd05d428f69e3f7c709a26c38b18583f878a7f2850b069b99917aeb44426d6decb3be3081bec039c86 libodfgen-0.1.3.tar.xz" |