desktop/podofo/PKGBUILD

45 lines
1.0 KiB
Bash
Raw Normal View History

#
# Chakra Apps for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=podofo
2011-04-28 06:00:29 +08:00
pkgver=0.9.1
2011-03-16 20:44:09 +08:00
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")
2011-04-28 06:00:29 +08:00
md5sums=('cec586ab69f92bc88d38b5d4b8eee5a0')
build() {
2011-03-16 20:44:09 +08:00
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
}
2011-03-16 20:44:09 +08:00
package() {
cd ${pkgname}-${pkgver}/build
make DESTDIR=$pkgdir install
}
package() {
cd ${pkgname}-${pkgver}/build
make DESTDIR=$pkgdir install || return 1
}