SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gutenpy"

# SliTaz package receipt.

PACKAGE="gutenpy"
VERSION="0.3.0"
CATEGORY="office"
SHORT_DESC="A text reader and catalog browser for project Gutenburg."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://gutenpy.sourceforge.net/"
WGET_URL="http://prdownloads.sourceforge.net/gutenpy/$TARBALL"

DEPENDS="python pygtk"
BUILD_DEPENDS="python python-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    # Fix missing .desktop file
    sed -i '/share\/applications/d' setup.py
    sed -i '/gutenpy.desktop/d' setup.py
    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr $fs
    # Add gutenpy.desktop file
    cp -a stuff/* $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)