wok view gegl/receipt @ rev 24614

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 06 21:04:14 2022 +0000 (2022-03-06)
parents 88afc2f95640
children aba2c5ca9a66
line source
1 # SliTaz package receipt.
3 PACKAGE="gegl"
4 VERSION="0.3.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="Generic Graphics Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://gegl.org/"
11 WGET_URL="http://download.gimp.org/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="babl expat gtk+ jpeg xorg-libX11"
15 BUILD_DEPENDS="babl-dev expat-dev gtk+-dev jasper-dev json-glib-dev \
16 util-linux-mount-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \
22 sed "/latest/d;/\[DIR/!d;s|.*href=.\\(.*\\)/.*\".*|https://download.gimp.org/pub/$PACKAGE/\\1/|" | sort -Vr | sed q > /tmp/url$$
23 cat /tmp/url$$ | xargs wget -O - 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 rm -f /tmp/url$$
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Keep gegl light so we can make smaller gimp LiveCD flavors
32 ./configure \
33 --disable-docs \
34 --without-sdl \
35 --without-librsvg \
36 --without-graphviz \
37 --without-lua \
38 --without-libavformat \
39 --without-libv4l \
40 $CONFIGURE_ARGS &&
41 make && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cp -a $install/usr/lib/gegl-* $fs/usr/lib
51 rm $fs/usr/lib/gegl-*/*.*a
52 }