wok-6.x view binclock/receipt @ rev 24572
updated freetds and freetds-dev (1.1.24 -> 1.3.9)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 27 07:32:20 2022 +0100 (2022-02-27) |
parents | 954b4c59fc67 |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="binclock"
4 VERSION="0.3.2-1"
5 CATEGORY="utilities"
6 SHORT_DESC="Fullscreen console binary clock."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="ncurses python"
10 BUILD_DEPENDS="ncurses-dev python-dev"
11 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
12 WEB_SITE="http://binclock.sourceforge.net/"
13 WGET_URL="http://prdownloads.sourceforge.net/binclock/$TARBALL"
15 # No rules to configure and make the package.
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/binclock/files/binclock/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;/tar/!d;s|.*/binclock_||;s|.tar.*||;q'
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin
29 # hack for /usr/bin/python
30 sed -i 's/python2/python/g' $src/binclock.py
31 cp -a $src/binclock.py $fs/usr/bin/binclock
32 chown root:root $fs/usr/bin/binclock
33 }