# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libetonyek pkgver=0.1.2 pkgrel=0 pkgdesc="Import filter and tools for Apple Keynote presentations" url="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek" arch="all" license="MPL2" depends="" depends_dev="glm-dev boost-dev librevenge-dev libxml2-dev zlib-dev" makedepends="$depends_dev gperf doxygen" 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" ./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="c74195efe487a495aba090bf39d072d3 libetonyek-0.1.2.tar.xz" sha256sums="58d078a76c3fd839c282244a1a7dabca81cef64be086a5c7d8470bb64208da39 libetonyek-0.1.2.tar.xz" sha512sums="9d1ca586c313f93b31a19a47e9a050bbc5be8cac385d16f3060353b26de86ddb35a2d72694ec6d0ad043a108a7fe5d451dcd205db96822a0c0ce32a101b20e80 libetonyek-0.1.2.tar.xz"