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