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