pkgname: ghostscript pkgver: '10.07.1' pkgrel: '1' pkgdesc: An interpreter for the PostScript language url: 'https://www.ghostscript.com/awki' arch: x86_64 depends: [] makedepends: - glib - at-spi2-core - libpng - libjpeg-turbo - libtiff - jasper - lcms2 - gnutls - cups - jbig2dec - openjpeg source: - 'https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10071/${pkgname}-${pkgver}.tar.xz' - 'https://downloads.sourceforge.net/gs-fonts/ghostscript-fonts-std-8.11.tar.gz' - 'https://downloads.sourceforge.net/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz' sha256sums: - SKIP - 0eb6f356119f2e49b2563210852e17f57f9dcc5755f350a69a46a0d641a0c401 - 8146cccc4699fe9dab841446bdd17039f4769c903eceb54409188b920754aab3 hooks: post-install: "name=ghostscript\nversion=10.07.1\nrelease=1\nif [ -f usr/bin/fc-cache ];then\n\tusr/bin/fc-cache usr/share/ghostscript/fonts\n\ fi\n" build: "cd ${pkgname}-${pkgver}\n\n# gcc14 buildfix\n export CFLAGS+=\" -Wno-incompatible-pointer-types -Wno-int-conversion\"\ \n\nrm -rf freetype lcms2 jpeg libpng zlib openjpeg\nrm -rf zlib\n./configure --prefix=/usr \\\n\t--enable-dynamic \\\n\t\ --disable-compile-inits \\\n --disable-hidden-visibility \\\n\t--with-system-libtiff\nmake\nmake so\nmake DESTDIR=${PKGDIR}\ \ install soinstall\n\nmkdir -p ${PKGDIR}/usr/include/ghostscript\nmkdir -p ${PKGDIR}/usr/share/doc/${pkgname}-${pkgver}\n\ \ninstall -v -m644 base/*.h ${PKGDIR}/usr/include/ghostscript\nln -v -s ghostscript ${PKGDIR}/usr/include/ps\n\nln -sv ../ghostscript/${pkgver}/doc\ \ \\\n${PKGDIR}/usr/share/doc/${pkgname}-${pkgver}\n\ncp -r ../fonts ${PKGDIR}/usr/share/ghostscript\n" package: | true