# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libmwaw pkgver=0.3.5 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 librevenge-dev attr-dev zlib-dev" makedepends="$depends_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 rm -f "$pkgdir"/usr/lib/*.la } tools() { mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr } md5sums="bdc58bbf89aaaf6d29b3516d96830a06 libmwaw-0.3.5.tar.bz2" sha256sums="fe71b7f120aca311a977569f51ffb258e824616db6afbb29ea0072398fc4c9b4 libmwaw-0.3.5.tar.bz2" sha512sums="277a58493b68fe250395ca8cf1075e88ec5cf8e315e333109d1c160d13bcaa68e2fb40ad8155ed06272e808ec33115fd5da298639783542f6be794fc750c8706 libmwaw-0.3.5.tar.bz2"