SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pyhn"

# SliTaz package receipt.

PACKAGE="pyhn"
VERSION="0.3.9"
CATEGORY="utilities"
SHORT_DESC="Hacker news command line client."
MAINTAINER="paul@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://github.com/socketubs/pyhn"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="git|git://github.com/socketubs/pyhn"

DEPENDS="python python-urwid"
BUILD_DEPENDS="python-dev python-urwid git bzip2"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/toxinu/pyhn/commits/main 2>/dev/null | \
    sed '/Release/!d;s|.*elease ||;s|<.*||'
}

# Rules to configure and make the package.
compile_rules()
{
    # hack config.py
    cd $src/pyhn
    sed -i 's/__default__/tazweb __url__/; \
        s/black||/light red||/' config.py

    cd $src
    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr $fs
}
    
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)