wok-current annotate binclock/receipt @ rev 25267
Update some deps using gcc83-lib-base
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 17 08:24:48 2022 +0000 (2022-07-17) |
parents | 954b4c59fc67 |
children | 7dd01dedad38 |
rev | line source |
---|---|
paul@15784 | 1 # SliTaz package receipt. |
paul@15784 | 2 |
paul@15784 | 3 PACKAGE="binclock" |
paul@15784 | 4 VERSION="0.3.2-1" |
paul@15784 | 5 CATEGORY="utilities" |
paul@15784 | 6 SHORT_DESC="Fullscreen console binary clock." |
paul@15784 | 7 MAINTAINER="paul@slitaz.org" |
paul@15784 | 8 LICENSE="GPL2" |
paul@15784 | 9 DEPENDS="ncurses python" |
paul@15784 | 10 BUILD_DEPENDS="ncurses-dev python-dev" |
paul@15784 | 11 TARBALL="${PACKAGE}_${VERSION}.tar.gz" |
paul@15784 | 12 WEB_SITE="http://binclock.sourceforge.net/" |
paul@15784 | 13 WGET_URL="http://prdownloads.sourceforge.net/binclock/$TARBALL" |
paul@15784 | 14 |
paul@15784 | 15 # No rules to configure and make the package. |
paul@15784 | 16 |
pascal@24353 | 17 # What is the latest version available today? |
pascal@24353 | 18 current_version() |
pascal@24353 | 19 { |
pascal@24353 | 20 wget -O - https://sourceforge.net/projects/binclock/files/binclock/ 2>/dev/null | \ |
pascal@24353 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24353 | 22 sed '/scope="row/!d;/tar/!d;s|.*/binclock_||;s|.tar.*||;q' |
pascal@24353 | 23 } |
pascal@24353 | 24 |
paul@15784 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@15784 | 26 genpkg_rules() |
paul@15784 | 27 { |
paul@15784 | 28 mkdir -p $fs/usr/bin |
paul@15784 | 29 # hack for /usr/bin/python |
paul@15784 | 30 sed -i 's/python2/python/g' $src/binclock.py |
paul@15784 | 31 cp -a $src/binclock.py $fs/usr/bin/binclock |
paul@15784 | 32 chown root:root $fs/usr/bin/binclock |
paul@15784 | 33 } |
paul@15784 | 34 |