summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6aadeda20b7d2a1ecbd49d480bc6489774c71756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Marco Scarpetta <marcoscarpetta02@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
# Contributor: Preecha Patumchareonpol <yumyai at gmail.com> 

pkgname=podofo-git
pkgver=r1599.5b2f441
pkgrel=1
pkgdesc="A C++ library to work with the PDF file format"
arch=('x86_64')
url="http://podofo.sourceforge.net"
license=('GPL')
depends=('lua' 'openssl' 'fontconfig' 'libtiff' 'libidn' 'libjpeg-turbo')
makedepends=('cmake')
conflicts=('podofo')
provides=('podofo')
source=("git://github.com/svn2github/podofo.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/podofo"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${srcdir}"
  mkdir -p build
}

build() { 
  cd "${srcdir}/build"
  cmake "${srcdir}/podofo" -DCMAKE_INSTALL_PREFIX=/usr \
        -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
        -DPODOFO_BUILD_SHARED=1 \
        -DPODOFO_HAVE_JPEG_LIB=1 \
        -DPODOFO_HAVE_PNG_LIB=1 \
        -DPODOFO_HAVE_TIFF_LIB=1
  make
}

package() {
  cd "${srcdir}/build"
  make DESTDIR=$pkgdir install
}