From d84d56b0294e1c7f9a9dec7abf28ddf5c9cd1e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giuseppe=20Cal=C3=A0?= Date: Fri, 19 Nov 2010 11:18:39 +0000 Subject: [PATCH] Added new app: PoDoFo, version 0.8.4 --- podofo/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 podofo/PKGBUILD diff --git a/podofo/PKGBUILD b/podofo/PKGBUILD new file mode 100644 index 000000000..9b0cdc9a5 --- /dev/null +++ b/podofo/PKGBUILD @@ -0,0 +1,44 @@ +# +# Chakra Apps for Chakra, part of chakra-project.org +# +# contributor (x86_64): Giuseppe CalĂ  + +# include global config +source ../_buildscripts/${current_repo}-${_arch}-cfg.conf + +pkgname=podofo +pkgver=0.8.4 +pkgrel=1 +pkgdesc="PoDoFo is a library to work with the PDF file format." +arch=('i686' 'x86_64') +url="http://podofo.sourceforge.net" +license=('GPL') +depends=( 'gcc-libs' 'fontconfig' 'libpng' 'libtiff' 'zlib') +makedepends=( 'cmake' ) +optdepends=( 'cppunit' 'lua') + +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz") +md5sums=('7c366656928cb7919d75bdfdf903d5d5') + +build() { + cd ${pkgname}-${pkgver} + if [ -d build ]; then + rm -Rf build + fi + + 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 || return 1 + + make || return 1 +} + +package() { + cd ${pkgname}-${pkgver}/build + make DESTDIR=$pkgdir install || return 1 +}