wok diff pyhn/receipt @ rev 18414

Add pyhn
author Paul Issott <paul@slitaz.org>
date Sun Sep 20 16:19:24 2015 +0100 (2015-09-20)
parents
children 8618581aa857
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pyhn/receipt	Sun Sep 20 16:19:24 2015 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pyhn"
     1.7 +VERSION="26082015"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="Hacker news command line client."
    1.10 +MAINTAINER="paul@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://github.com/socketubs/pyhn"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="git|git://github.com/socketubs/pyhn"
    1.15 +
    1.16 +DEPENDS="python python-urwid"
    1.17 +BUILD_DEPENDS="python-dev python-urwid git bzip2"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	# hack config.py
    1.23 +	cd $src/pyhn
    1.24 +	sed -i 's/__default__/tazweb __url__/; \
    1.25 +		s/black||/light red||/' config.py
    1.26 +
    1.27 +	cd $src
    1.28 +	python setup.py install --root=$DESTDIR
    1.29 +}
    1.30 +
    1.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 +genpkg_rules()
    1.33 +{
    1.34 +	cp -a $install/usr $fs
    1.35 +}
    1.36 +