wok view retty/receipt @ rev 24462

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 21:07:01 2022 +0000 (2022-02-16)
parents 5493122f67f2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="retty"
4 VERSION="1.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Terminal attaching without screen"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://pasky.or.cz/dev/retty/"
11 WGET_URL="$WEB_SITE$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make && strip *tty
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp -a $src/blindtty $fs/usr/bin
34 cp -a $src/retty $fs/usr/bin
35 }