wok-current annotate ghostscript/receipt @ rev 24491
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 22:59:06 2022 +0000 (2022-02-18) |
parents | ff236a1ecca5 |
children | bbb38f5d2cd9 |
rev | line source |
---|---|
pankso@626 | 1 # SliTaz package receipt. |
pankso@626 | 2 |
pankso@626 | 3 PACKAGE="ghostscript" |
slaxemulator@9423 | 4 VERSION="9.02" |
pankso@626 | 5 CATEGORY="office" |
pankso@626 | 6 SHORT_DESC="Ghostscript tools and utilities." |
jozee@2762 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL3" |
Hans-G?nter@23221 | 9 WEB_SITE="http://pages.cs.wisc.edu/~ghost/" |
Hans-G?nter@23221 | 10 |
slaxemulator@8659 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@15215 | 12 #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL" |
pascal@15215 | 13 WGET_URL="http://downloads.ghostscript.com/public/$TARBALL" |
pascal@15215 | 14 |
pascal@2845 | 15 DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \ |
Hans-G?nter@23221 | 16 libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \ |
Hans-G?nter@23221 | 17 xorg-libXdmcp xorg-libXext xorg-libXt gcc-lib-base jasper jbig2dec" |
jozee@2765 | 18 # build depends are optional ; ghostscripts still build but does not compile in cups support |
al@18472 | 19 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev \ |
Hans-G?nter@23221 | 20 gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev \ |
Hans-G?nter@23221 | 21 zlib-dev cups-dev jbig2dec jasper-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 |
slaxemulator@8659 | 34 rm -rf jpeg libpng zlib jasper expat tiff |
slaxemulator@6650 | 35 |
slaxemulator@6650 | 36 # --disable-compile-inits is needed for linking with system-zlib |
slaxemulator@6650 | 37 |
Hans-G?nter@23221 | 38 # 9.02 |
Hans-G?nter@23221 | 39 sed -i '32i#include <cups/ppd.h>' \ |
Hans-G?nter@23221 | 40 cups/colord.h |
Hans-G?nter@23221 | 41 |
Hans-G?nter@23221 | 42 ./configure \ |
Hans-G?nter@23221 | 43 --prefix=/usr \ |
Hans-G?nter@23221 | 44 --infodir=/usr/share/info \ |
Hans-G?nter@23221 | 45 --mandir=/usr/share/man \ |
Hans-G?nter@23221 | 46 --disable-compile-inits \ |
Hans-G?nter@23221 | 47 --enable-dynamic \ |
Hans-G?nter@23221 | 48 --enable-cups \ |
Hans-G?nter@23221 | 49 --enable-cairo \ |
Hans-G?nter@23221 | 50 --enable-gtk \ |
jozee@2762 | 51 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \ |
Hans-G?nter@23221 | 52 --disable-compile-inits \ |
pankso@2211 | 53 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 54 make $MAKEFLAGS && |
pascal@15215 | 55 make DESTDIR=$DESTDIR install soinstall |
pankso@626 | 56 } |
pankso@626 | 57 |
pankso@626 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@626 | 59 genpkg_rules() |
pankso@626 | 60 { |
pankso@626 | 61 mkdir -p $fs/usr/share |
jozee@2762 | 62 mkdir -p $fs/usr/lib |
Hans-G?nter@23221 | 63 |
Hans-G?nter@23221 | 64 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23221 | 65 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23221 | 66 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
Hans-G?nter@23221 | 67 |
jozee@2762 | 68 # if cups-dev installed |
Hans-G?nter@23221 | 69 cp -a $install/usr/share/cups $fs/usr/share |
Hans-G?nter@23221 | 70 cp -a $install/etc $fs |
Hans-G?nter@23221 | 71 |
Hans-G?nter@23221 | 72 # Remove documentation and examples |
Hans-G?nter@23221 | 73 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc |
Hans-G?nter@23221 | 74 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples |
Hans-G?nter@23221 | 75 |
jozee@2762 | 76 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP |
Hans-G?nter@23221 | 77 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/* |
jozee@2762 | 78 |
Hans-G?nter@23221 | 79 # already compiled as a shared library; gsc is same as gs |
Hans-G?nter@23221 | 80 rm -rf $fs/usr/bin/gs |
pankso@626 | 81 } |
jozee@2762 | 82 |
jozee@2762 | 83 post_install() |
jozee@2762 | 84 { |
al@18472 | 85 ln -sf /usr/bin/gsc "$1/usr/bin/gs" |
jozee@2762 | 86 } |