wok-6.x annotate gimp/receipt @ rev 24351

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 10:14:47 2022 +0000 (2022-02-03)
parents a78610b2eb47
children 88afc2f95640
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 # Rules to configure and make the package.
pankso@43 32 compile_rules()
pankso@43 33 {
devl547@19889 34
devl547@19889 35 # Fix some build issues, as suggested by BLFS manual
devl547@19889 36
devl547@19889 37 sed -i '/gegl/s/2/3/' configure &&
devl547@19889 38 sed -i '70,75 d' app/core/gimpparamspecs-duplicate.c
devl547@19889 39
pankso@43 40 ./configure \
pankso@4245 41 --prefix=/usr \
pankso@4245 42 --sysconfdir=/etc \
pankso@4245 43 --infodir=/usr/share/info \
pankso@4245 44 --mandir=/usr/share/man \
pankso@43 45 --with-html-dir=/usr/share/doc \
erjo@1646 46 --without-print \
pankso@549 47 --disable-python \
erjo@1646 48 --without-poppler \
erjo@1646 49 --without-libcurl \
erjo@1646 50 --without-alsa \
erjo@1646 51 --without-librsvg \
erjo@1646 52 --without-dbus \
pankso@4245 53 --without-webkit \
jozee@2769 54 $CONFIGURE_ARGS &&
pankso@12740 55 make $MAKEFLAGS && make install
pankso@43 56 }
pankso@43 57
pankso@43 58 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@43 59 genpkg_rules()
pankso@43 60 {
pankso@4260 61 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
pankso@3955 62
pankso@12740 63 cp -a $install/etc $fs
pankso@12740 64 cp -a $install/usr/bin $fs/usr
pankso@12740 65 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12740 66 cp -a $install/usr/lib/gimp $fs/usr/lib
pankso@12740 67
pankso@12740 68 cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
pankso@4260 69 $fs/usr/share/pixmaps/gimp.png
pankso@3955 70
pankso@4260 71 # The gimp-console goes in a separate package
pankso@4260 72 rm $fs/usr/bin/gimp-console*
pankso@4260 73
pankso@4260 74 # Most plug-ins goes in a separate package
pankso@4260 75 rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
pankso@4260 76 for i in file-jpeg file-png pixelize screenshot
pankso@4260 77 do
pankso@12740 78 cp $install/usr/lib/gimp/2.0/plug-ins/$i \
pankso@12740 79 $fs/usr/lib/gimp/2.0/plug-ins
pankso@4260 80 done
pankso@4260 81
pankso@12740 82 # Include only Basic brushes --> gimp-brushes
pankso@12740 83 cp -a $install/usr/share/gimp $fs/usr/share
pankso@12740 84 for i in gimp-* Legacy Media Sketch Splatters Texture
pankso@12740 85 do
pankso@12740 86 rm -rf $fs/usr/share/gimp/2.0/brushes/$i
pankso@12740 87 done
pankso@12740 88
pankso@12740 89 # Remove devel files
pankso@12740 90 rm $fs/usr/lib/gimp/2.0/modules/*.*a
pankso@3955 91
pankso@43 92 # Put a nice splash with a spider
pankso@12740 93 cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
pankso@43 94 }