wok view pyhn/receipt @ rev 25429
updated xbindkeys (1.8.6 -> 1.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 17:19:07 2022 +0100 (2022-08-18) |
parents | 076f424196b2 |
children |
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 - https://github.com/toxinu/pyhn/commits/main 2>/dev/null | \
20 sed '/Release/!d;s|.*elease ||;s|<.*||'
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 }