# HG changeset patch # User Paul Issott # Date 1442762364 -3600 # Node ID 24892e271649e272539f613caf07eeae36be7bfa # Parent 5fcb050fa8cd2a690a3a8dbf98d44846de608dc8 Add pyhn diff -r 5fcb050fa8cd -r 24892e271649 pyhn/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyhn/receipt Sun Sep 20 16:19:24 2015 +0100 @@ -0,0 +1,33 @@ +# SliTaz package receipt. + +PACKAGE="pyhn" +VERSION="26082015" +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" + +# 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 +} +