aboutsummaryrefslogtreecommitdiffstats
path: root/testing/podofo/APKBUILD
blob: e7b12d1c25b58c23f21b55f7740406d23795d0aa (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:
pkgname=podofo
pkgver=0.9.1
pkgrel=1
pkgdesc="A C++ library to work with the PDF file format"
url="http://podofo.sourceforge.net"
arch="all"
license="GPL"
depends=
depends_dev="tiff-dev libpng-dev fontconfig-dev cmake"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
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="cec586ab69f92bc88d38b5d4b8eee5a0  podofo-0.9.1.tar.gz"