summaryrefslogtreecommitdiff
path: root/extra/ghostscript/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-04-02 04:06:07 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-04-02 04:06:07 +0000
commitc667b77b6719baf541fff1a3e0a855d1ca7c6433 (patch)
tree160a3ef2cadf16ee901ebbfb33235a840565a41c /extra/ghostscript/PKGBUILD
parent0918b213023626f9fb5958a5927263aa4d2ea28b (diff)
Wed Apr 2 04:01:38 UTC 2014
Diffstat (limited to 'extra/ghostscript/PKGBUILD')
-rw-r--r--extra/ghostscript/PKGBUILD26
1 files changed, 18 insertions, 8 deletions
diff --git a/extra/ghostscript/PKGBUILD b/extra/ghostscript/PKGBUILD
index 7e52904c5..205d898a7 100644
--- a/extra/ghostscript/PKGBUILD
+++ b/extra/ghostscript/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 204554 2014-01-22 13:38:01Z andyrtr $
+# $Id: PKGBUILD 209706 2014-04-01 15:16:54Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
### !!! rebuild groff from core that picks up hardcoding the GS versioned font path !!! ###
pkgname=ghostscript
-pkgver=9.10
-pkgrel=3
+pkgver=9.14
+pkgrel=1
pkgdesc="An interpreter for the PostScript language"
arch=('i686' 'x86_64')
license=('AGPL' 'custom')
@@ -15,18 +15,28 @@ makedepends=('gtk3' 'gnutls')
optdepends=('texlive-core: needed for dvipdf'
'gtk3: needed for gsx')
url="http://www.ghostscript.com/"
-source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2)
-options=('!makeflags')
-md5sums=('7179bb1ed4f6f453147e6f7e1f210ce8')
+source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2
+ ghostscript-sys-zlib.patch)
+#options=('!makeflags')
+sha1sums=('eab1c9e9850d8aedf02d16f3f7f8198ad9384068'
+ 'e054caf753df4d67221b29a2eac66130653f7556')
-build() {
+prepare() {
cd ghostscript-${pkgver}
+ # fix build with system zlib
+ patch -Np1 -i ${srcdir}/ghostscript-sys-zlib.patch
+}
+build() {
+ cd ghostscript-${pkgver}
+
# 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
+ autoconf --force
+
./configure --prefix=/usr \
--enable-dynamic \
--with-ijs \
@@ -57,7 +67,7 @@ package() {
cd ghostscript-${pkgver}
make DESTDIR="${pkgdir}" \
cups_serverroot="${pkgdir}"/etc/cups \
- cups_serverbin="${pkgdir}"/usr/lib/cups install soinstall
+ cups_serverbin="${pkgdir}"/usr/lib/cups install install-so
# install missing doc files # http://bugs.archlinux.org/task/18023
install -m 644 "${srcdir}"/ghostscript-${pkgver}/doc/{Ps2ps2.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} "${pkgdir}"/usr/share/ghostscript/$pkgver/doc/