extra/ghostscript to 9.20-2

This commit is contained in:
Kevin Mihelich 2016-10-01 15:23:40 +00:00
parent ca77d18c90
commit 0d5c0bb4a5

View file

@ -5,23 +5,22 @@
# - build v7 and v8 with -fPIC
pkgname=ghostscript
pkgver=9.19
pkgrel=3
pkgver=9.20
pkgrel=2
pkgdesc="An interpreter for the PostScript language"
arch=('i686' 'x86_64')
license=('AGPL' 'custom')
depends=('libxt' 'libcups' 'fontconfig' 'jasper' 'zlib' 'libpng>=1.5.7' 'libjpeg'
'libtiff>=4.0.0' 'lcms2' 'dbus' 'libpaper')
makedepends=('gtk3' 'gnutls' 'hardening-wrapper' 'ijs')
depends=('libxt' 'libcups' 'fontconfig' 'jasper' 'zlib' 'libpng' 'libjpeg'
'jbig2dec' 'libtiff' 'lcms2' 'dbus' 'libpaper' 'ijs')
makedepends=('gtk3' 'gnutls' 'hardening-wrapper')
optdepends=('texlive-core: needed for dvipdf'
'gtk3: needed for gsx')
url="http://www.ghostscript.com/"
source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver/./}/ghostscript-${pkgver}.tar.bz2
#http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2
source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver/./}/ghostscript-${pkgver}.tar.xz
ghostscript-sys-zlib.patch)
#options=('!makeflags')
options=('!makeflags')
# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
sha1sums=('6ac5c1fb665b3201622e1149f04c641c506bf6c4'
sha1sums=('ed63f43482f5af60dff52e81b2d9478da3ad1e3e'
'e054caf753df4d67221b29a2eac66130653f7556')
prepare() {
cd ghostscript-${pkgver}
@ -37,7 +36,7 @@ build() {
# force it to use system-libs
# keep heavily patched included openjpeg, leads to segfault with system openjpeg
# https://bugs.archlinux.org/task/38226
rm -rf jpeg libpng zlib jasper expat tiff lcms lcms2 freetype cups/libs # jbig2dec is in community
rm -rfv cups/libs freetype ijs jbig2dec jpeg lcms2 libpng tiff zlib
autoconf --force
@ -45,7 +44,7 @@ build() {
--enable-dynamic \
--with-ijs \
--with-jbig2dec \
--with-omni \
--without-omni \
--with-x \
--with-drivers=ALL\
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
@ -53,7 +52,6 @@ build() {
--enable-freetype \
--enable-openjpeg \
--without-luratech \
--without-omni \
--with-system-libtiff \
--with-libpaper \
--disable-compile-inits #--help # needed for linking with system-zlib