# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libwps pkgver=0.4.0 pkgrel=0 pkgdesc="Import filter and tools for Microsoft Works files" url="http://sourceforge.net/projects/libwps/" 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/libwps/libwps/libwps-$pkgver/libwps-$pkgver.tar.bz2" _builddir="$srcdir"/libwps-$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 } tools() { mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr } md5sums="e9162d2566421d9d71b3ad2377a68fd5 libwps-0.4.0.tar.bz2" sha256sums="b60d574aefe6a2e446500edb8802f9bc7885fa261e2e47ee3042432a02bb2d35 libwps-0.4.0.tar.bz2" sha512sums="ade57aa69dfe89f7bcf56b1a18d4be6fe17427d8f3123c298533d1f486b9d6c12a60ded54d270996b8efefad61009ae909e7e0942eb8b750f4c99d9a883cd192 libwps-0.4.0.tar.bz2"