# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=podofo pkgver=0.9.3 pkgrel=0 pkgdesc="A C++ library to work with the PDF file format" url="http://podofo.sourceforge.net" arch="all" license="GPL" depends= depends_dev="" makedepends="$depends_dev tiff-dev libpng-dev fontconfig-dev cmake lua-dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. \ -DPODOFO_BUILD_SHARED=1 \ -DPODOFO_HAVE_JPEG_LIB=1 \ -DPODOFO_HAVE_PNG_LIB=1 \ -DPODOFO_HAVE_TIFF_LIB=1 make || return 1 } package() { cd "$_builddir"/build make DESTDIR="$pkgdir" install || return 1 } md5sums="268ca111826757ca7e3f5c4be3547e7a podofo-0.9.3.tar.gz" sha256sums="ec261e31e89dce45b1a31be61e9c6bb250532e631a02d68ec5bb849ef0a222d8 podofo-0.9.3.tar.gz" sha512sums="c9a8076821502225d3ecf5a7e79ef2ebd7b9cc3e7d0902eabff33325b124109a1f5038f57b83e3fad0d82cff9cd557a9ed177adc7c176064085070aebcd7602d podofo-0.9.3.tar.gz"