wok view pyhn/receipt @ rev 24326

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 27 12:16:00 2022 +0000 (2022-01-27)
parents 8618581aa857
children 076f424196b2
line source
1 # SliTaz package receipt.
3 PACKAGE="pyhn"
4 VERSION="0.3.9"
5 CATEGORY="utilities"
6 SHORT_DESC="Hacker news command line client."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/socketubs/pyhn"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="git|git://github.com/socketubs/pyhn"
13 DEPENDS="python python-urwid"
14 BUILD_DEPENDS="python-dev python-urwid git bzip2"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/Release/!d;s|.*>Release ||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # hack config.py
27 cd $src/pyhn
28 sed -i 's/__default__/tazweb __url__/; \
29 s/black||/light red||/' config.py
31 cd $src
32 python setup.py install --root=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/usr $fs
39 }