# $Id: PKGBUILD 63712 2012-02-05 12:08:41Z ibiru $ # Maintainer: Giovanni Scafora # Contributor: BlackEagle < ike DOT devolder AT gmail DOT com > # Contributor: Preecha Patumchareonpol pkgname=podofo pkgver=0.9.1 pkgrel=3 pkgdesc="A C++ library to work with the PDF file format" arch=('i686' 'x86_64' 'mips64el') url="http://podofo.sourceforge.net" license=('GPL') depends=( 'gcc-libs' 'fontconfig' 'libpng' 'libtiff') makedepends=('cmake') source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz") md5sums=('cec586ab69f92bc88d38b5d4b8eee5a0') build() { cd ${pkgname}-${pkgver} 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 } package() { cd ${pkgname}-${pkgver}/build make DESTDIR=$pkgdir install }