wok-next diff pyhn/receipt @ rev 18473

Add tazpkg-test(844): beta release of the tazpkg
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 05 04:01:02 2015 +0300 (2015-10-05)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pyhn/receipt	Mon Oct 05 04:01:02 2015 +0300
     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 +