# SliTaz package receipt. PACKAGE="gimp" VERSION="2.8.20" CATEGORY="graphics" SHORT_DESC="Gnu Image Manipulation Program or GIMP!" MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://www.gimp.org/" WGET_URL="https://download.gimp.org/pub/gimp/v${VERSION%.*}/$TARBALL" SUGGESTED="gimp-plug-ins gimp-brushes gimp-console gimp-plugin-ufraw" DEPENDS="libart_lgpl babl gegl libgio tiff xorg-libXdamage xorg-libXmu \ xorg-libXt gdk-pixbuf gtk+ libexif json-glib" BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev libgio-dev \ intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \ gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev \ json-glib-dev" # What is the latest version available today? current_version() { wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \ sed "/latest/d;/\[DIR/!d;/v[0-9]/!d;s|.*href=.\\(.*\\)/.*\".*|https://download.gimp.org/pub/$PACKAGE/\\1|" | \ sort -Vr | sed q | xargs wget -O - 2>/dev/null | \ sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { # Fix some build issues, as suggested by BLFS manual sed -i '/gegl/s/2/3/' configure && sed -i '70,75 d' app/core/gimpparamspecs-duplicate.c ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --with-html-dir=/usr/share/doc \ --without-print \ --disable-python \ --without-poppler \ --without-libcurl \ --without-alsa \ --without-librsvg \ --without-dbus \ --without-webkit \ $CONFIGURE_ARGS && make $MAKEFLAGS && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/share/pixmaps cp -a $install/etc $fs cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/gimp $fs/usr/lib cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \ $fs/usr/share/pixmaps/gimp.png # The gimp-console goes in a separate package rm $fs/usr/bin/gimp-console* # Most plug-ins goes in a separate package rm -rf $fs/usr/lib/gimp/2.0/plug-ins/* for i in file-jpeg file-png pixelize screenshot do cp $install/usr/lib/gimp/2.0/plug-ins/$i \ $fs/usr/lib/gimp/2.0/plug-ins done # Include only Basic brushes --> gimp-brushes cp -a $install/usr/share/gimp $fs/usr/share for i in gimp-* Legacy Media Sketch Splatters Texture do rm -rf $fs/usr/share/gimp/2.0/brushes/$i done # Remove devel files rm $fs/usr/lib/gimp/2.0/modules/*.*a # Put a nice splash with a spider cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images }