SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ristretto"

# SliTaz package receipt.

PACKAGE="ristretto"
# According to repology.org, most linux distributions name that package
# ristretto, not xfce4-ristretto, albeit it is a xfce application
VERSION="0.8.5"
CATEGORY="x-window"
TAGS="image viewer"
SHORT_DESC="Picture-viewer for Xfce."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://docs.xfce.org/apps/ristretto/start"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://archive.xfce.org/src/apps/$PACKAGE/${VERSION%.*}/$TARBALL"

SUGGESTED="ristretto-lang tumbler"    # to show previews in thumbnail bar
DEPENDS="dbus-glib libexif libxfce4ui libxfce4util xfconf"
BUILD_DEPENDS="dbus-glib-dev gtk+-dev intltool libexif-dev libxfce4ui-dev
    libxfce4util-dev xfconf-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null |
    sed '/released/!d;s| released.*||;s|.*ristretto ||'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    16*
    cook_copy_folders    48*

    mkdir    $fs/usr/share/pixmaps
    ln -s /usr/share/icons/hicolor/48x48/apps/$PACKAGE.png \
        $fs/usr/share/pixmaps/$PACKAGE.png
}

post_install()
{
    echo
    echo "Executing post-install command gtk-update-icon-cache"
    gtk-update-icon-cache -f -t -q "$1/usr/share/icons/hicolor"
}
6011 packages and 861676 files in cooking database (Sun Jun 8 00:51:35 2025)