SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "feh"

# SliTaz package receipt

PACKAGE="feh"
VERSION="3.9.1"
CATEGORY="graphics"
TAGS="image photo viewer"
SHORT_DESC="Lightweight and powerful image viewer and composer."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://feh.finalrewind.org/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="${WEB_SITE}$TARBALL"

DEPENDS="freetype gcc83-lib-base giblib imlib2 jpeg libcurl libpng xorg-libX11 
    xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXinerama"
BUILD_DEPENDS="curl-dev gcc83 giblib-dev imlib2-dev jpeg-dev libpng-dev 
    xorg-libX11-dev xorg-xineramaproto xorg-xproto"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 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()
{
    make            \
        CC=gcc-83    \
        PREFIX=/usr &&
    make    install        \
        PREFIX=/usr    \
        DESTDIR=$DESTDIR

    # Remove from menu since it needs a parameter to load images.
    sed -i    -e '/Categories.*/'d \
        $DESTDIR/usr/share/applications/feh.desktop || return 1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    fonts
    cook_copy_folders    images
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)