SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gdk-pixbuf-xlib"

# SliTaz package receipt.

PACKAGE="gdk-pixbuf-xlib"
VERSION="2.40.2"
CATEGORY="x-window"
SHORT_DESC="GdkPixbuf/Xlib API."
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.gtk.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="gdk-pixbuf"
BUILD_DEPENDS="gdk-pixbuf-dev meson"

HOST_ARCH="i486 arm"

# Handle cross compilation
case "$ARCH" in
    (i?86)
        BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev"
        ;;
    (arm)
        ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache"
        ;;
esac

current_version()
{
    wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
    sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
    sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    case "$ARCH" in
        (arm) echo "gio_can_sniff=yes" > arm.cache ;;
    esac

        meson build \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
            --buildtype=release &&
        ninja -C build &&
        ninja -C build install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
}

# Pre and post install commands for Tazpkg.
post_install()
{
    # Updating gdk pixbuf loaders cache file...
    chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)