wok-next view ghostscript/receipt @ rev 20883

Check Repology info from h* to l* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jul 11 02:06:34 2018 +0300 (2018-07-11)
parents b856fc8d7283
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ghostscript"
4 VERSION="9.22"
5 CATEGORY="office"
6 SHORT_DESC="Ghostscript tools and utilities"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION/./}/$TARBALL"
14 # build depends are optional ; ghostscripts still build but does not compile in cups support
15 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev \
16 gnutls-dev libgcrypt-dev libgpg-error-dev libpng16-dev tiff-dev \
17 zlib-dev cups-dev jbig2dec jasper-dev libjpeg-turbo-dev"
18 SPLIT="ghostscript ghostscript-dev"
20 compile_rules() {
21 # force it to use system-libs
22 rm -rf jpeg libpng zlib jasper expat tiff
24 # --disable-compile-inits is needed for linking with system-zlib
26 ./configure \
27 --disable-compile-inits \
28 --enable-dynamic \
29 --enable-cups \
30 --enable-gtk \
31 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
32 --disable-compile-inits \
33 $CONFIGURE_ARGS &&
34 make $MAKEFLAGS &&
35 make DESTDIR=$DESTDIR install soinstall
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 ghostscript)
41 copy @std
42 # Remove doc and examples
43 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
44 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
45 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
46 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
47 # already compiled as a shared lib; gsc is same as gs
48 rm -rf $fs/usr/bin/gs
49 ln -s gsc $fs/usr/bin/gs
51 DEPENDS="atk cairo cups fontconfig freetype gdk-pixbuf glib gtk+ \
52 libcups libgnutls libidn libjpeg-turbo libpng16 pango tiff zlib"
53 ;;
54 *-dev)
55 copy @dev
56 ;;
57 esac
58 }