wok-6.x annotate screen/receipt @ rev 24614

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 06 21:04:14 2022 +0000 (2022-03-06)
parents da134f47b369
children 3110e5023d97
rev   line source
pascal@901 1 # SliTaz package receipt.
pascal@901 2
pascal@901 3 PACKAGE="screen"
pascal@23840 4 VERSION="4.8.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"
pascal@23623 18 BUILD_DEPENDS="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@21890 30 ./configure \
Hans-G?nter@21890 31 --with-sys-screenrc=/etc/screenrc \
pascal@17515 32 $CONFIGURE_ARGS &&
pascal@17515 33 make &&
pascal@17515 34 make -j1 DESTDIR=$DESTDIR install &&
pascal@17515 35 mkdir -p $DESTDIR/usr/share/terminfo &&
pascal@17515 36 tic -o $DESTDIR/usr/share/terminfo terminfo/screeninfo.src &&
pascal@17515 37 mkdir -p $DESTDIR/etc &&
pascal@17515 38 cp -a $src/etc/screenrc $DESTDIR/etc
pascal@901 39 }
pascal@901 40
pascal@901 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@901 42 genpkg_rules()
pascal@901 43 {
Hans-G?nter@21890 44 mkdir -p $fs/usr/bin
Hans-G?nter@21890 45 mkdir -p $fs/usr/share
Hans-G?nter@21890 46
Hans-G?nter@21890 47 cp -a $install/etc $fs
Hans-G?nter@21890 48 cp -a $install/usr/bin/screen-$VERSION $fs/usr/bin/screen
Hans-G?nter@21890 49 cp -a $install/usr/share/screen $fs/usr/share
pascal@901 50 }