aboutsummaryrefslogtreecommitdiffstats
path: root/community/podofo/APKBUILD
blob: 32b4191c22753fd092d11055fcf160d4e604d6fd (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
45
46
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=podofo
pkgver=0.9.6
pkgrel=0
pkgdesc="A C++ library to work with the PDF file format"
url="http://podofo.sourceforge.net"
arch="all"
license="GPL-2.0-only"
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
	podofo-cmake-3.12.patch
	"
builddir="$srcdir"/$pkgname-$pkgver

# secfixes:
#   0.9.5-r0:
#     - CVE-2017-6843
#     - CVE-2017-6844
#     - CVE-2017-6845
#     - CVE-2017-6846
#     - CVE-2017-6847
#     - CVE-2017-6849

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
}

sha512sums="35c1a457758768bdadc93632385f6b9214824fead279f1b85420443fb2135837cefca9ced476df0d47066f060e9150e12fcd40f60fa1606b177da433feb20130  podofo-0.9.6.tar.gz
6c14a620debeb12a36169f225382c08f5367d8cf93d9d3678bec94ce44dabcf235a7d87c2c29b7c8f5daa8abc9f7415e9e58fa3720388cbbf082b7f63896863f  podofo-cmake-3.12.patch"