wok annotate pyhn/receipt @ rev 24596

updated gftp (2.0.19 -> 2.9.1b)
author Hans-G?nter Theisgen
date Tue Mar 01 15:53:52 2022 +0100 (2022-03-01)
parents 076f424196b2
children
rev   line source
paul@18414 1 # SliTaz package receipt.
paul@18414 2
paul@18414 3 PACKAGE="pyhn"
paul@19964 4 VERSION="0.3.9"
paul@18414 5 CATEGORY="utilities"
paul@18414 6 SHORT_DESC="Hacker news command line client."
paul@18414 7 MAINTAINER="paul@slitaz.org"
paul@18414 8 LICENSE="MIT"
paul@18414 9 WEB_SITE="https://github.com/socketubs/pyhn"
paul@18414 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
paul@18414 11 WGET_URL="git|git://github.com/socketubs/pyhn"
paul@18414 12
paul@18414 13 DEPENDS="python python-urwid"
paul@18414 14 BUILD_DEPENDS="python-dev python-urwid git bzip2"
paul@18414 15
pascal@24459 16 # What is the latest version available today?
pascal@24459 17 current_version()
pascal@24459 18 {
pascal@24459 19 wget -O - https://github.com/toxinu/pyhn/commits/main 2>/dev/null | \
pascal@24459 20 sed '/Release/!d;s|.*elease ||;s|<.*||'
pascal@24459 21 }
pascal@24459 22
paul@18414 23 # Rules to configure and make the package.
paul@18414 24 compile_rules()
paul@18414 25 {
paul@18414 26 # hack config.py
paul@18414 27 cd $src/pyhn
paul@18414 28 sed -i 's/__default__/tazweb __url__/; \
paul@18414 29 s/black||/light red||/' config.py
paul@18414 30
paul@18414 31 cd $src
paul@18414 32 python setup.py install --root=$DESTDIR
paul@18414 33 }
paul@18414 34
paul@18414 35 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@18414 36 genpkg_rules()
paul@18414 37 {
paul@18414 38 cp -a $install/usr $fs
paul@18414 39 }
paul@18414 40