wok annotate gegl/receipt @ rev 25808

created recipe for xmenu
author Hans-G?nter Theisgen
date Thu Dec 19 16:09:37 2024 +0100 (6 days ago)
parents bd7510903310
children
rev   line source
erjo@1645 1 # SliTaz package receipt.
erjo@1645 2
erjo@1645 3 PACKAGE="gegl"
devl547@19887 4 VERSION="0.3.12"
erjo@1645 5 CATEGORY="system-tools"
erjo@1645 6 SHORT_DESC="Generic Graphics Library"
erjo@1645 7 MAINTAINER="erjo@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pankso@9782 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@23974 10 WEB_SITE="https://gegl.org/"
pascal@24972 11 WGET_URL="https://download.gimp.org/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
pankso@16580 12 HOST_ARCH="i486 arm"
pankso@9782 13
pankso@12738 14 DEPENDS="babl expat gtk+ jpeg xorg-libX11"
pascal@19888 15 BUILD_DEPENDS="babl-dev expat-dev gtk+-dev jasper-dev json-glib-dev \
devl547@19887 16 util-linux-mount-dev"
erjo@1645 17
pascal@24351 18 # What is the latest version available today?
pascal@24351 19 current_version()
pascal@24351 20 {
pascal@24351 21 wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \
pascal@25608 22 sed "/latest/d;/arent dir/d;/>-</!d;s|.*href=.\\(.*\\)/\".*|https://download.gimp.org/pub/$PACKAGE/\\1|" | \
pascal@24695 23 sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
pascal@24351 24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24351 25 }
pascal@24351 26
pascal@24351 27 # Rules to configure and make the package.
erjo@1645 28 compile_rules()
erjo@1645 29 {
pankso@4244 30 # Keep gegl light so we can make smaller gimp LiveCD flavors
pankso@4244 31 ./configure \
erjo@1645 32 --disable-docs \
pankso@4244 33 --without-sdl \
pankso@4244 34 --without-librsvg \
pankso@4244 35 --without-graphviz \
pankso@4244 36 --without-lua \
pankso@4244 37 --without-libavformat \
slaxemulator@10333 38 --without-libv4l \
slaxemulator@10333 39 $CONFIGURE_ARGS &&
slaxemulator@8964 40 make && make install
erjo@1645 41 }
erjo@1645 42
erjo@1645 43 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1645 44 genpkg_rules()
erjo@1645 45 {
pankso@12738 46 mkdir -p $fs/usr/lib
pankso@12738 47 cp -a $install/usr/bin $fs/usr
pankso@12738 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12738 49 cp -a $install/usr/lib/gegl-* $fs/usr/lib
pankso@12738 50 rm $fs/usr/lib/gegl-*/*.*a
erjo@1645 51 }