aboutsummaryrefslogtreecommitdiffstats
path: root/community/podofo/APKBUILD
blob: 5f6d05d93b501a99c93e0686e4f51253b6ebaaf8 (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.4
pkgrel=1
pkgdesc="A C++ library to work with the PDF file format"
url="http://podofo.sourceforge.net"
arch="all"
license="GPL"
depends=
makedepends="tiff-dev libpng-dev fontconfig-dev 
cmake lua-dev libressl-dev libidn-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="929c9d2bd367fb6cb1f178cd4eb93dd3  podofo-0.9.4.tar.gz"
sha256sums="ccdf505fcb4904617e728b15729da8700ff38442c1dd2f24fbd52934287ff859  podofo-0.9.4.tar.gz"
sha512sums="2f675757d76ccfe2472358b04dc4cd55e2cf00ae447731af75645c7091a338b6d91dcd4b16240b305cdbb02384ddcd38048c0e3f1700185347d4e1eb5df9ee39  podofo-0.9.4.tar.gz"