summaryrefslogtreecommitdiff
path: root/user/gnu-ghostscript/APKBUILD
blob: b526bb7942a9cda3003623af5527c2430d9507d0 (plain) (blame)
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
47
48
49
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gnu-ghostscript
pkgver=9.14.1
pkgrel=3
pkgdesc="PostScript utilities"
url="https://www.gnu.org/software/ghostscript/"
arch="all"
license="AGPL-3.0+ WITH PDF-exception"
depends=""
makedepends="cups-dev dbus-dev fontconfig-dev freetype-dev lcms2-dev libice-dev
	libjpeg-turbo-dev libpaper-dev libpng-dev libx11-dev libxext-dev
	libxt-dev tiff-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="ftp://ftp.gnu.org/gnu/ghostscript/gnu-ghostscript-$pkgver.tar.xz
	do-not-use-sprintf.patch
	locksafe.patch
	"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-dynamic \
		--with-system-libtiff
	make
	make so
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	make DESTDIR="$pkgdir" soinstall
	install -D -m644 base/*.h "$pkgdir"/usr/include/ghostscript
}

sha512sums="658f6ae14b29965c7959b9bd1463760d7fb03b35251446fc37101dbe7ee2866c74a0803e22b2f4488be3221d026578be1d6be7b562ff240036134fbf83edabf9  gnu-ghostscript-9.14.1.tar.xz
1c4d79633ecece9f4de7a672f2888939be7d1e0ba24f3a66500fdfbb37e081e0f323a5efa0d1547fed51206e5a95d3b0659c0ea845d0bc333f281dfb88fcc040  do-not-use-sprintf.patch
959e0386e4ac268298ab5e9d3936afcf38560b1d3ab49256719d72d38783feef62ceb065d35235de9f7b7bc52ab119a297e115954ea0bb4d7c00046f333141aa  locksafe.patch"