diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 09:15:29 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 12:52:04 +0000 |
commit | d45796e35d4b7b66a1aadec83e5979c596136383 (patch) | |
tree | 0a283d59a9b9f45a7600b9012c52213dbca8f849 /community/libabw/APKBUILD | |
parent | 484679a23fb5dc782dbe3b6ac242322faf74340b (diff) | |
download | aports-d45796e35d4b7b66a1aadec83e5979c596136383.tar.bz2 aports-d45796e35d4b7b66a1aadec83e5979c596136383.tar.xz |
community/libabw: moved from main
Diffstat (limited to 'community/libabw/APKBUILD')
-rw-r--r-- | community/libabw/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/community/libabw/APKBUILD b/community/libabw/APKBUILD new file mode 100644 index 000000000..51c09d7f1 --- /dev/null +++ b/community/libabw/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: +pkgname=libabw +pkgver=0.1.1 +pkgrel=1 +pkgdesc="Import filter and tools for AbiWord documents" +url="https://wiki.documentfoundation.org/DLP/Libraries/libabw" +arch="all" +license="MPL2" +depends="" +depends_dev="librevenge-dev libxml2-dev zlib-dev boost-dev" +makedepends="$depends_dev doxygen gperf perl" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +source="http://dev-www.libreoffice.org/src/$pkgname/$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 +} + +build() { + cd "$_builddir" + + # workaround for boost 1.59 + export CPPFLAGS='-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED' + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-werror \ + || 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="6be55a46078b593ec20cad9bb8730c3e libabw-0.1.1.tar.xz" +sha256sums="cfc698c2dd4ab592138a941ae26e2e18c3dac69bc196b5167df7f5eb88fc217e libabw-0.1.1.tar.xz" +sha512sums="853dd86ecc79e8590d3163e05e145ad66240ae3cf12d206d021775a94bfb33d70aa5acdcdd193ac747baeae1ba0eed18099ea6f4515be23bdd70b431e96c4b1a libabw-0.1.1.tar.xz" |