wok-current view gimp/receipt @ rev 24679
updated iso-codes (4.4 -> 4.9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 12 09:36:26 2022 +0100 (2022-03-12) |
parents | 88afc2f95640 |
children | aba2c5ca9a66 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gimp"
4 VERSION="2.8.20"
5 CATEGORY="graphics"
6 SHORT_DESC="Gnu Image Manipulation Program or GIMP!"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.gimp.org/"
11 WGET_URL="http://download.gimp.org/pub/gimp/v${VERSION%.*}/$TARBALL"
12 SUGGESTED="gimp-plug-ins gimp-brushes gimp-console gimp-plugin-ufraw"
14 DEPENDS="libart_lgpl babl gegl libgio tiff xorg-libXdamage xorg-libXmu \
15 xorg-libXt gdk-pixbuf gtk+ libexif json-glib"
16 BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev libgio-dev \
17 intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \
18 gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev \
19 json-glib-dev"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \
25 sed "/latest/d;/\[DIR/!d;/v[0-9]/!d;s|.*href=.\\(.*\\)/.*\".*|https://download.gimp.org/pub/$PACKAGE/\\1|" | sort -Vr | sed q > /tmp/url$$
26 cat /tmp/url$$ | xargs wget -O - 2>/dev/null | \
27 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
28 rm -f /tmp/url$$
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
35 # Fix some build issues, as suggested by BLFS manual
37 sed -i '/gegl/s/2/3/' configure &&
38 sed -i '70,75 d' app/core/gimpparamspecs-duplicate.c
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc \
43 --infodir=/usr/share/info \
44 --mandir=/usr/share/man \
45 --with-html-dir=/usr/share/doc \
46 --without-print \
47 --disable-python \
48 --without-poppler \
49 --without-libcurl \
50 --without-alsa \
51 --without-librsvg \
52 --without-dbus \
53 --without-webkit \
54 $CONFIGURE_ARGS &&
55 make $MAKEFLAGS && make install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
63 cp -a $install/etc $fs
64 cp -a $install/usr/bin $fs/usr
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 cp -a $install/usr/lib/gimp $fs/usr/lib
68 cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
69 $fs/usr/share/pixmaps/gimp.png
71 # The gimp-console goes in a separate package
72 rm $fs/usr/bin/gimp-console*
74 # Most plug-ins goes in a separate package
75 rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
76 for i in file-jpeg file-png pixelize screenshot
77 do
78 cp $install/usr/lib/gimp/2.0/plug-ins/$i \
79 $fs/usr/lib/gimp/2.0/plug-ins
80 done
82 # Include only Basic brushes --> gimp-brushes
83 cp -a $install/usr/share/gimp $fs/usr/share
84 for i in gimp-* Legacy Media Sketch Splatters Texture
85 do
86 rm -rf $fs/usr/share/gimp/2.0/brushes/$i
87 done
89 # Remove devel files
90 rm $fs/usr/lib/gimp/2.0/modules/*.*a
92 # Put a nice splash with a spider
93 cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
94 }