wok-current annotate ghostscript/receipt @ rev 25368
libmpd: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 29 10:44:25 2022 +0000 (2022-07-29) |
parents | bbb38f5d2cd9 |
children | b826db0e2a51 |
rev | line source |
---|---|
pankso@626 | 1 # SliTaz package receipt. |
pankso@626 | 2 |
pankso@626 | 3 PACKAGE="ghostscript" |
Hans-G?nter@24598 | 4 VERSION="9.55.0" |
pankso@626 | 5 CATEGORY="office" |
pankso@626 | 6 SHORT_DESC="Ghostscript tools and utilities." |
jozee@2762 | 7 MAINTAINER="jozee@slitaz.org" |
Hans-G?nter@24598 | 8 LICENSE="AGPL" |
Hans-G?nter@24598 | 9 WEB_SITE="https://www.ghostscript.com/" |
Hans-G?nter@23221 | 10 |
Hans-G?nter@24598 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@24598 | 12 WGET_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION//./}/$TARBALL" |
pascal@15215 | 13 |
Hans-G?nter@24598 | 14 DEPENDS="cups expat fontconfig freetype gcc83-lib-base gnutls gtk+ jasper |
Hans-G?nter@24598 | 15 jbig2dec jpeg libgcrypt libgpg-error libpng tiff xorg-libICE |
Hans-G?nter@24598 | 16 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext |
Hans-G?nter@24598 | 17 xorg-libXt zlib" |
jozee@2765 | 18 # build depends are optional ; ghostscripts still build but does not compile in cups support |
Hans-G?nter@24598 | 19 BUILD_DEPENDS="cairo-dev cups-dev expat-dev fontconfig-dev freetype-dev |
Hans-G?nter@24598 | 20 gcc83 gnutls-dev gtk+-dev jasper-dev jbig2dec jpeg-dev libgcrypt-dev |
Hans-G?nter@24598 | 21 libgpg-error-dev libpng-dev tiff-dev zlib-dev" |
pankso@626 | 22 |
pascal@24491 | 23 # What is the latest version available today? |
pascal@24491 | 24 current_version() |
pascal@24491 | 25 { |
pascal@24491 | 26 wget -O - https://www.ghostscript.com/releases/index.html 2>/dev/null | \ |
pascal@24491 | 27 sed '/latest release/!d;s|.*script ||;s| .*||;q' |
pascal@24491 | 28 } |
pascal@24491 | 29 |
pankso@626 | 30 # Rules to configure and make the package. |
pankso@626 | 31 compile_rules() |
pankso@626 | 32 { |
slaxemulator@6650 | 33 # force it to use system-libs |
Hans-G?nter@24598 | 34 rm -rf jpeg libpng zlib jasper expat |
slaxemulator@6650 | 35 |
slaxemulator@6650 | 36 # --disable-compile-inits is needed for linking with system-zlib |
Hans-G?nter@24598 | 37 ./configure \ |
Hans-G?nter@24598 | 38 CC=gcc-83 \ |
Hans-G?nter@24598 | 39 CXX=g++-83 \ |
Hans-G?nter@24598 | 40 --prefix=/usr \ |
Hans-G?nter@24598 | 41 --infodir=/usr/share/info \ |
Hans-G?nter@24598 | 42 --mandir=/usr/share/man \ |
Hans-G?nter@24598 | 43 --disable-compile-inits \ |
Hans-G?nter@24598 | 44 --enable-cups \ |
Hans-G?nter@24598 | 45 --enable-dynamic \ |
Hans-G?nter@24598 | 46 --enable-gtk \ |
Hans-G?nter@24598 | 47 --with-fontpath="/usr/share/fonts/truetype/:/usr/share/fonts" \ |
Hans-G?nter@24598 | 48 --with-system-libtiff \ |
pankso@2211 | 49 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 50 make $MAKEFLAGS && |
Hans-G?nter@24598 | 51 make install soinstall DESTDIR=$DESTDIR |
pankso@626 | 52 } |
pankso@626 | 53 |
pankso@626 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@626 | 55 genpkg_rules() |
pankso@626 | 56 { |
pankso@626 | 57 mkdir -p $fs/usr/share |
jozee@2762 | 58 mkdir -p $fs/usr/lib |
Hans-G?nter@23221 | 59 |
Hans-G?nter@23221 | 60 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23221 | 61 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23221 | 62 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
Hans-G?nter@23221 | 63 |
jozee@2762 | 64 # if cups-dev installed |
Hans-G?nter@24598 | 65 # 9.55.0: not created |
Hans-G?nter@24598 | 66 # cp -a $install/usr/share/cups $fs/usr/share |
Hans-G?nter@24598 | 67 # cp -a $install/etc $fs |
Hans-G?nter@23221 | 68 |
Hans-G?nter@23221 | 69 # Remove documentation and examples |
Hans-G?nter@23221 | 70 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc |
Hans-G?nter@23221 | 71 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples |
Hans-G?nter@23221 | 72 |
Hans-G?nter@24598 | 73 # Remove CMAPs (Non-free : not covered under GPL) : |
Hans-G?nter@24598 | 74 # moved to non-free package get-ghostscript-CMAP |
Hans-G?nter@23221 | 75 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/* |
Hans-G?nter@24598 | 76 |
Hans-G?nter@24598 | 77 # already compiled as a shared lib; gsc is same as gs |
Hans-G?nter@23221 | 78 rm -rf $fs/usr/bin/gs |
pankso@626 | 79 } |
jozee@2762 | 80 |
jozee@2762 | 81 post_install() |
jozee@2762 | 82 { |
Hans-G?nter@24598 | 83 ln -sf /usr/bin/gsc "$1/usr/bin/gs" |
jozee@2762 | 84 } |