wok-next diff python-pyhn/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-pyhn/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +ORIGIN="pyhn"
     1.7 +PACKAGE="python-pyhn"
     1.8 +VERSION="0.3.9"
     1.9 +CATEGORY="utilities"
    1.10 +SHORT_DESC="Hacker news command line client"
    1.11 +MAINTAINER="paul@slitaz.org"
    1.12 +LICENSE="MIT"
    1.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.14 +HOST_ARCH="any"
    1.15 +REPOLOGY="pyhn" # python:pyhn
    1.16 +
    1.17 +# It depends on old and precise defined versions of Python modules:
    1.18 +#   * requests==2.10.0
    1.19 +#   * urwid==1.3.1
    1.20 +#   * beautifulsoup4==4.5.1
    1.21 +# They will be installed with the package and will no harm for any actual
    1.22 +# versions of the Python modules.
    1.23 +BUILD_DEPENDS="python python3"
    1.24 +SPLIT="${PACKAGE/python/python3}:3"
    1.25 +
    1.26 +compile_rules() {
    1.27 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.28 +}
    1.29 +
    1.30 +genpkg_rules() {
    1.31 +	copy @std
    1.32 +	py=${PACKAGE%%-*} # python/python3
    1.33 +	DEPENDS="$py"
    1.34 +}