SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gqview"

# SliTaz package receipt.

PACKAGE="gqview"
VERSION="2.1.5"
CATEGORY="graphics"
SHORT_DESC="Images viewer and manager using GTK+."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://gqview.sourceforge.io/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="gtk+ xorg-libXdamage"
BUILD_DEPENDS="pkg-config gtk+ gtk+-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/gqview/files/unstable/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/unstable/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"

    ./configure            \
        --prefix=/usr        \
        --mandir=/usr/share/man    \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/locale
    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/pixmaps    $fs/usr/share

    # locales
    LOCALE="ca da de es fr id it pl pt_BR ru sv uk zh_CN"
    for locale in $LOCALE
        do
        if [ -e $install/usr/share/locale/$locale/gqview.mo ]
            then
            mkdir -p $fs/usr/share/locale/$locale/LC_MESSAGES
            cp -a    $install/usr/share/locale/$locale/gqview.mo \
                $fs/usr/share/locale/$locale/LC_MESSAGES
            fi
        done
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)