wok annotate screen/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (16 months ago)
parents 71360a13cd94
children d79ed38ace18
rev   line source
pascal@901 1 # SliTaz package receipt.
pascal@901 2
pascal@901 3 PACKAGE="screen"
Hans-G?nter@25294 4 VERSION="4.9.0"
pascal@901 5 CATEGORY="system-tools"
pascal@901 6 SHORT_DESC="Terminal multiplexer."
pascal@901 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@21890 9 WEB_SITE="https://www.gnu.org/software/screen/"
Hans-G?nter@21890 10
pascal@901 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@901 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@21890 13
pascal@2173 14 CONFIG_FILES="/etc/screenrc"
Hans-G?nter@21890 15
slaxemulator@10341 16 SUGGESTED="screen-terminfo"
gokhlayeh@8980 17 DEPENDS="elfutils"
Hans-G?nter@25294 18 BUILD_DEPENDS="automake ncursesw-extra texinfo"
pascal@901 19
pascal@24336 20 # What is the latest version available today?
pascal@24336 21 current_version()
pascal@24336 22 {
pascal@24336 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 25 }
pascal@24336 26
pascal@901 27 # Rules to configure and make the package.
pascal@901 28 compile_rules()
pascal@901 29 {
Hans-G?nter@25294 30 ./autogen.sh &&
Hans-G?nter@21890 31 ./configure \
Hans-G?nter@21890 32 --with-sys-screenrc=/etc/screenrc \
pascal@17515 33 $CONFIGURE_ARGS &&
pascal@17515 34 make &&
Hans-G?nter@25294 35 make install DESTDIR=$DESTDIR &&
Hans-G?nter@25294 36
pascal@17515 37 mkdir -p $DESTDIR/usr/share/terminfo &&
pascal@17515 38 tic -o $DESTDIR/usr/share/terminfo terminfo/screeninfo.src &&
pascal@17515 39 mkdir -p $DESTDIR/etc &&
pascal@17515 40 cp -a $src/etc/screenrc $DESTDIR/etc
pascal@901 41 }
pascal@901 42
pascal@901 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@901 44 genpkg_rules()
pascal@901 45 {
Hans-G?nter@21890 46 mkdir -p $fs/usr/bin
Hans-G?nter@21890 47 mkdir -p $fs/usr/share
Hans-G?nter@21890 48
Hans-G?nter@21890 49 cp -a $install/etc $fs
Hans-G?nter@21890 50 cp -a $install/usr/bin/screen-$VERSION $fs/usr/bin/screen
Hans-G?nter@21890 51 cp -a $install/usr/share/screen $fs/usr/share
pascal@901 52 }