SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gegl"

# SliTaz package receipt.

PACKAGE="gegl"
VERSION="0.3.12"
CATEGORY="system-tools"
SHORT_DESC="Generic Graphics Library"
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://gegl.org/"
WGET_URL="https://download.gimp.org/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="babl expat gtk+ jpeg xorg-libX11"
BUILD_DEPENDS="babl-dev expat-dev gtk+-dev jasper-dev json-glib-dev \
util-linux-mount-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \
    sed "/latest/d;/arent dir/d;/>-</!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()
{
    # Keep gegl light so we can make smaller gimp LiveCD flavors
    ./configure \
        --disable-docs \
        --without-sdl \
        --without-librsvg \
        --without-graphviz \
        --without-lua \
        --without-libavformat \
        --without-libv4l \
        $CONFIGURE_ARGS &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/gegl-* $fs/usr/lib
    rm $fs/usr/lib/gegl-*/*.*a
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)