SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cbrpager"

# SliTaz package receipt.

PACKAGE="cbrpager"
VERSION="0.9.22"
CATEGORY="graphics"
SHORT_DESC="Viewer for CBR, CBZ and CB7 (comic book archive) files"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL3"
WEB_SITE="http://jcoppens.com/soft/cbrpager/index.en.php"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libgnome-keyring libgnomeui p7zip-full rar unzip"
BUILD_DEPENDS="gettext libgnomeui-dev libgnome-dev libbonoboui-dev \
libgnomecanvas-dev libgnome-keyring-dev gtk+-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        $CONFIGURE_ARGS \
        LDFLAGS="$(pkg-config --libs libgnomeui-2.0 gtk+-2.0)" && \
    make && \
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    # add Russian translation
    mkdir -p $fs/usr/share/locale/ru/LC_MESSAGES
    msgfmt $stuff/ru.po -o $fs/usr/share/locale/ru/LC_MESSAGES/cbrpager.mo
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)