Date: Tuesday, November 1, 2022 @ 18:03:07 Author: andyrtr Revision: 459935
upgpkg: ghostscript 10.0.0-2 - drop --enable-dynamic to bring back X11 devices - FS#76316 / https://bugs.ghostscript.com/show_bug.cgi?id=705895 - use system CMAPs character mapping provided by poppler-data - only build and install the shared gs binaries - don't link but rename gsc to gs to match manpages and common usage + add "ghostscript" links for binary and manpage - grop unneeded lpr scripts Modified: ghostscript/trunk/PKGBUILD ----------+ PKGBUILD | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-01 17:25:47 UTC (rev 459934) +++ PKGBUILD 2022-11-01 18:03:07 UTC (rev 459935) @@ -3,13 +3,13 @@ pkgbase=ghostscript pkgname=(ghostscript ghostxps ghostpcl) pkgver=10.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="An interpreter for the PostScript language" url="https://www.ghostscript.com/" arch=('x86_64') license=('AGPL3' 'custom') depends=('libxt' 'libcups' 'fontconfig' 'zlib' 'libpng' 'libjpeg' 'jbig2dec' - 'libtiff' 'lcms2' 'dbus' 'libpaper' 'ijs' 'openjpeg2' 'libidn') + 'libtiff' 'lcms2' 'dbus' 'libpaper' 'ijs' 'openjpeg2' 'libidn' 'poppler-data') makedepends=('gtk3' 'gnutls' 'glu' 'freeglut') options=('debug') # https://github.com/ArtifexSoftware/ghostpdl-downloads/releases @@ -55,10 +55,10 @@ # http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=40dc5b409c6262b18b4bf5386b5482ead4c511e3 # libs link unwanted to libgpdl that isn't installed rm -rf gpdl + + # Remove internal CMaps (CMaps from poppler-data are used instead) + rm -r Resource/CMap - # https://bugs.ghostscript.com/show_bug.cgi?id=704405 - sed -i "s/gscms_transformm_color_const/gscms_transform_color_const/" base/gsicc_lcms2.c - # Debian: # allow the build timestamp to be externally set patch -Np1 -i ../2010_add_build_timestamp_setting.patch } @@ -66,7 +66,6 @@ build() { cd ghostpdl-${pkgver} ./configure --prefix=/usr \ - --enable-dynamic \ --with-ijs \ --with-jbig2dec \ --with-x \ @@ -79,7 +78,7 @@ --with-system-libtiff \ --with-libpaper \ --disable-compile-inits #--help # needed for linking with system-zlib - make + make so } package_ghostscript() { @@ -87,15 +86,24 @@ 'gtk3: needed for gsx') cd ghostpdl-${pkgver} - make DESTDIR="${pkgdir}" install-gs install-so-gs + make -j1 DESTDIR="${pkgdir}" soinstall + # split pkg cleanup + rm -v "${pkgdir}"/usr/bin/{gpcl6*,gxps*} + rm -v "${pkgdir}"/usr/lib/{libgpcl6*,libgxps.so*} - # replace statically linked gs binary with symlink to dynamically linked gsc - rm -v "${pkgdir}"/usr/bin/gs - ln -s gsc "${pkgdir}"/usr/bin/gs + # gsc collides with gambit gambit-c + mv "${pkgdir}"/usr/bin/{gsc,gs} + ln -s gs "${pkgdir}"/usr/bin/ghostscript + ln -s /usr/share/man/man1/gs.1.gz "${pkgdir}"/usr/share/man/man1/ghostscript.1 # remove unwanted localized manpages rm -rv "${pkgdir}"/usr/share/man/de + # remove obsolete lpr bsd/Unix related files + rm -rv "${pkgdir}"/usr/bin/{lprsetup.sh,unix-lpr.sh} + # install the CMaps from poppler-data + ln -s /usr/share/poppler/cMap "${pkgdir}"/usr/share/ghostscript/Resource/CMap + install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 LICENSE }
