# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libmwaw pkgver=0.3.9 pkgrel=0 pkgdesc="Import filter and tools for old Mac documents" url="http://sourceforge.net/projects/libmwaw/" arch="all" license="MPL2" depends="" depends_dev="boost-dev attr-dev zlib-dev" makedepends="$depends_dev librevenge-dev doxygen" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" source="http://downloads.sourceforge.net/project/libmwaw/libmwaw/libmwaw-$pkgver/libmwaw-$pkgver.tar.bz2" _builddir="$srcdir"/libmwaw-$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="d8532ad5630d3f3b2189a7ec5639151b libmwaw-0.3.9.tar.bz2" sha256sums="11a1f318431a052e1d623385351c8e659377d36db3e71e188af55da87ce9461f libmwaw-0.3.9.tar.bz2" sha512sums="b61c6af7d831bec4a68098a81e1b3b61894ccc453dd4b28dbd034a008fcebaf7b04794fdebcbe1163ec7c5a6f24aedbcc0e7968eb8788a9d363feaed8e021442 libmwaw-0.3.9.tar.bz2"