diff options
Diffstat (limited to 'main/librevenge/APKBUILD')
-rw-r--r-- | main/librevenge/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/main/librevenge/APKBUILD b/main/librevenge/APKBUILD new file mode 100644 index 0000000000..156e94c3e5 --- /dev/null +++ b/main/librevenge/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=librevenge +pkgver=0.0.2 +pkgrel=0 +pkgdesc="Base library for writing document import filters" +url="http://sourceforge.net/projects/libwpd/" +arch="all" +license="MPL2" +depends="" +depends_dev="boost-dev zlib-dev cppunit-dev" +makedepends="$depends_dev 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 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-dependency-tracking \ + --enable-fast-install \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="4ee55a80ee32af6752dd8c56eb1b1b5e librevenge-0.0.2.tar.xz" +sha256sums="f6f280c4345546aad16aeafd5cf2e4a4ac31a81606171755465bba0d96efcf0f librevenge-0.0.2.tar.xz" +sha512sums="28e53aefdfe8585ef148781e53379a986b5becb459a27dffe8546341e7ada6a3323bc27ab3170227a532e796869b634ad0443324af72b16835a4287a64994637 librevenge-0.0.2.tar.xz" |