aboutsummaryrefslogtreecommitdiffstats
path: root/testing/podofo/APKBUILD
blob: d355e45d739b9f40306a9b6a183c26ad4d31d1b1 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=podofo
pkgver=0.9.3
pkgrel=0
pkgdesc="A C++ library to work with the PDF file format"
url="http://podofo.sourceforge.net"
arch="all"
license="GPL"
depends=
depends_dev=""
makedepends="$depends_dev tiff-dev libpng-dev fontconfig-dev cmake lua-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
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="268ca111826757ca7e3f5c4be3547e7a  podofo-0.9.3.tar.gz"
sha256sums="ec261e31e89dce45b1a31be61e9c6bb250532e631a02d68ec5bb849ef0a222d8  podofo-0.9.3.tar.gz"
sha512sums="c9a8076821502225d3ecf5a7e79ef2ebd7b9cc3e7d0902eabff33325b124109a1f5038f57b83e3fad0d82cff9cd557a9ed177adc7c176064085070aebcd7602d  podofo-0.9.3.tar.gz"