[arch-commits] Commit in ghostscript/repos/testing-x86_64 (PKGBUILD PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Wed Mar 31 06:26:08 UTC 2021


    Date: Wednesday, March 31, 2021 @ 06:26:07
  Author: andyrtr
Revision: 411309

archrelease: copy trunk to testing-x86_64

Added:
  ghostscript/repos/testing-x86_64/PKGBUILD
    (from rev 411308, ghostscript/trunk/PKGBUILD)
Deleted:
  ghostscript/repos/testing-x86_64/PKGBUILD

----------+
 PKGBUILD |  225 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 114 insertions(+), 111 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-31 06:25:57 UTC (rev 411308)
+++ PKGBUILD	2021-03-31 06:26:07 UTC (rev 411309)
@@ -1,111 +0,0 @@
-# Maintainer: AndyRTR <andyrtr at archlinux.org>
-
-pkgbase=ghostscript
-pkgname=(ghostscript ghostxps ghostpcl)
-pkgver=9.54.0
-pkgrel=1
-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')
-makedepends=('gtk3' 'gnutls' 'glu' 'freeglut')
-# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
-source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver//./}/ghostpdl-${pkgver}.tar.xz)
-sha512sums=('fed500f5f267f0eeecc4ab44c2785ddaa9ad6965b689e9792021e2348296ee19150f10decb264a4689464088449be44fe8e6c30566a26e6e4e978c8b2d4654ec')
-
-### update jbig2dec first! ###
-
-### make sure to rebuild core/groff on version updates - https://bugs.archlinux.org/task/67751 ###
-
-prepare() {
-  cd ghostpdl-${pkgver}
-
-  # *** remove after final decision ***
-  # new in 9.54.0: 
-  # https://www.ghostscript.com/doc/9.54.0/News.htm
-
-  # 1) inclusion of the tesseract/leptonica sources for OCR capabilities
-  # at the moment we do not support linking with tesseract/leptonica shared libraries. 
-  # As is normal with such included libraries, deleting those directories and (re)running
-  # configure (on Unix like systems) will automatically build without the OCR functionality.
-  # increases package size ghostpcl 2.7->4.9MB | ghostscript 18->23MB | ghostxps 2,7->4.9MB
-  # https://www.ghostscript.com/doc/9.54.0/VectorDevices.htm#UseOCR - 
-  # this doesn't seem to be worth to keep enabled until linking with shared libs is supported
-  rm -r tesseract leptonica
-
-  # 2) new directory addition in the source tree: "extract/". 
-  # It contains the implementation for the writing of docx format files used by the
-  # new "docxwrite" device. This is *not* a "thirdparty library". 
-  # For distribution package maintainers, if you want your packaged Ghostscript to include
-  # the "docxwrite" device, do not delete this directory.
-  # ^ this one doesn't affect package size - so let's keep it
-
-  # force it to use system-libs
-  rm -r cups/libs expat ijs jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib
-  # using tree freetype because of https://bugs.archlinux.org/task/56849
-  # lcms2mt is the new lcms2 fork aimed to replace lcms2 in a thread safe way
-  
-  # http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=40dc5b409c6262b18b4bf5386b5482ead4c511e3
-  # libs link unwanted to libgpdl that isn't installed
-  rm -rf gpdl
-}
-
-build() {
-  cd ghostpdl-${pkgver}
-  ./configure --prefix=/usr \
-              --enable-dynamic \
-              --with-ijs \
-              --with-jbig2dec \
-              --with-x \
-              --with-drivers=ALL \
-              --with-openprinting \
-              --with-fontpath=/usr/share/fonts/gsfonts \
-              --enable-fontconfig \
-              --enable-freetype \
-              --enable-openjpeg \
-              --without-luratech \
-              --with-system-libtiff \
-              --with-libpaper \
-              --disable-compile-inits #--help # needed for linking with system-zlib
-  make
-}
-
-package_ghostscript() {
-  optdepends=('texlive-core:      needed for dvipdf'
-              'gtk3:              needed for gsx')
-
-  cd ghostpdl-${pkgver}
-  make DESTDIR="${pkgdir}"  install-gs install-so-gs
-  # replace statically linked gs binary with symlink to dynamically linked gsc
-  rm -v "${pkgdir}"/usr/bin/gs
-  ln -s gsc "${pkgdir}"/usr/bin/gs
-
-  # remove unwanted localized manpages
-  rm -rv "${pkgdir}"/usr/share/man/de
-
-  install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 LICENSE
-}
-
-package_ghostxps() {
-  pkgdesc="${pkgdesc/PostScript/XPS document}"
-  depends=("ghostscript=${pkgver}-${pkgrel}")
-
-  cd ghostpdl-${pkgver}
-  make DESTDIR="${pkgdir}" install-gxps install-so-gxps
-  rm -r "${pkgdir}"/usr/include
-  
-  install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 LICENSE
-}
-
-package_ghostpcl() {
-  pkgdesc="${pkgdesc/PostScript/PCL 6}"
-  depends=("ghostscript=${pkgver}-${pkgrel}")
-
-  cd ghostpdl-${pkgver}
-  make DESTDIR="${pkgdir}" install-gpcl6 install-so-gpcl6
-  rm -r "${pkgdir}"/usr/include
-
-  install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 LICENSE
-}

Copied: ghostscript/repos/testing-x86_64/PKGBUILD (from rev 411308, ghostscript/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-03-31 06:26:07 UTC (rev 411309)
@@ -0,0 +1,114 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+pkgbase=ghostscript
+pkgname=(ghostscript ghostxps ghostpcl)
+pkgver=9.54.0
+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')
+makedepends=('gtk3' 'gnutls' 'glu' 'freeglut')
+# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases
+source=(https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${pkgver//./}/ghostpdl-${pkgver}.tar.xz)
+sha512sums=('fed500f5f267f0eeecc4ab44c2785ddaa9ad6965b689e9792021e2348296ee19150f10decb264a4689464088449be44fe8e6c30566a26e6e4e978c8b2d4654ec')
+
+### update jbig2dec first! ###
+
+### make sure to rebuild core/groff on version updates - https://bugs.archlinux.org/task/67751 ###
+
+prepare() {
+  cd ghostpdl-${pkgver}
+
+  # *** remove after final decision ***
+  # new in 9.54.0: 
+  # https://www.ghostscript.com/doc/9.54.0/News.htm
+
+  # 1) inclusion of the tesseract/leptonica sources for OCR capabilities
+  # at the moment we do not support linking with tesseract/leptonica shared libraries. 
+  # As is normal with such included libraries, deleting those directories and (re)running
+  # configure (on Unix like systems) will automatically build without the OCR functionality.
+  # increases package size ghostpcl 2.7->4.9MB | ghostscript 18->23MB | ghostxps 2,7->4.9MB
+  # https://www.ghostscript.com/doc/9.54.0/VectorDevices.htm#UseOCR - 
+  # this doesn't seem to be worth to keep enabled until linking with shared libs is supported
+  rm -r tesseract leptonica
+
+  # 2) new directory addition in the source tree: "extract/". 
+  # It contains the implementation for the writing of docx format files used by the
+  # new "docxwrite" device. This is *not* a "thirdparty library". 
+  # For distribution package maintainers, if you want your packaged Ghostscript to include
+  # the "docxwrite" device, do not delete this directory.
+  # ^ this one doesn't affect package size - so let's keep it
+
+  # force it to use system-libs
+  rm -r cups/libs expat ijs jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib
+  # using tree freetype because of https://bugs.archlinux.org/task/56849
+  # lcms2mt is the new lcms2 fork aimed to replace lcms2 in a thread safe way
+  
+  # http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=40dc5b409c6262b18b4bf5386b5482ead4c511e3
+  # libs link unwanted to libgpdl that isn't installed
+  rm -rf gpdl
+}
+
+build() {
+  cd ghostpdl-${pkgver}
+  ./configure --prefix=/usr \
+              --enable-dynamic \
+              --with-ijs \
+              --with-jbig2dec \
+              --with-x \
+              --with-drivers=ALL \
+              --with-openprinting \
+              --with-fontpath=/usr/share/fonts/gsfonts \
+              --enable-fontconfig \
+              --enable-freetype \
+              --enable-openjpeg \
+              --without-luratech \
+              --with-system-libtiff \
+              --with-libpaper \
+              --disable-compile-inits #--help # needed for linking with system-zlib
+  make
+}
+
+package_ghostscript() {
+  optdepends=('texlive-core:      needed for dvipdf'
+              'gtk3:              needed for gsx')
+
+  cd ghostpdl-${pkgver}
+  make DESTDIR="${pkgdir}"  install-gs install-so-gs
+  # replace statically linked gs binary with symlink to dynamically linked gsc
+  rm -v "${pkgdir}"/usr/bin/gs
+  ln -s gsc "${pkgdir}"/usr/bin/gs
+
+  # remove unwanted localized manpages
+  rm -rv "${pkgdir}"/usr/share/man/de
+
+  install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 LICENSE
+}
+
+package_ghostxps() {
+  pkgdesc="${pkgdesc/PostScript/XPS document}"
+  depends=("ghostscript=${pkgver}-${pkgrel}")
+
+  cd ghostpdl-${pkgver}
+  make DESTDIR="${pkgdir}" install-gxps install-so-gxps
+  rm -r "${pkgdir}"/usr/include
+  
+  install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 LICENSE
+
+  # fix file conflict - FS#70238
+  rm -r "${pkgdir}"/usr/lib/libgxps.so
+}
+
+package_ghostpcl() {
+  pkgdesc="${pkgdesc/PostScript/PCL 6}"
+  depends=("ghostscript=${pkgver}-${pkgrel}")
+
+  cd ghostpdl-${pkgver}
+  make DESTDIR="${pkgdir}" install-gpcl6 install-so-gpcl6
+  rm -r "${pkgdir}"/usr/include
+
+  install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 LICENSE
+}



More information about the arch-commits mailing list