wok annotate tcsh/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents fed661669638
children cc915c928cd6
rev   line source
samuel_trassare@11724 1 # SliTaz package receipt.
samuel_trassare@11724 2
samuel_trassare@11724 3 PACKAGE="tcsh"
Hans-G?nter@23693 4 VERSION="6.22.02"
samuel_trassare@11724 5 CATEGORY="system-tools"
samuel_trassare@11724 6 SHORT_DESC="Enhanced, compatible Berkeley UNIX C shell."
samuel_trassare@11724 7 MAINTAINER="samuel_trassare@yahoo.com"
pascal@15600 8 LICENSE="BSD"
Hans-G?nter@22015 9 WEB_SITE="https://www.tcsh.org/"
Hans-G?nter@22015 10
Hans-G?nter@22015 11 TARBALL="TCSH${VERSION//./_}.tar.gz"
Hans-G?nter@22015 12 WGET_URL="https://github.com/tcsh-org/$PACKAGE/archive/$TARBALL"
samuel_trassare@11724 13
pascal@17716 14 DEPENDS="ncurses"
pascal@17716 15 BUILD_DEPENDS="ncurses-dev"
Hans-G?nter@23693 16 #The following build dep will be necessary when glibc ups to 2.14.
Hans-G?nter@23693 17 #BUILD_DEPENDS="libtirpc"
pascal@17716 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/TCSH\(.*\).tar.*|\1|;s|_|.|;q'
pascal@24055 23 }
pascal@24055 24
samuel_trassare@11724 25 # Rules to configure and make the package.
samuel_trassare@11724 26 compile_rules()
samuel_trassare@11724 27 {
pascal@17716 28 export LDFLAGS="$LDFLAGS -ltinfo"
pascal@15166 29 mkdir -p $DESTDIR/usr/bin
pascal@15166 30 touch $DESTDIR/usr/bin/tcsh
Hans-G?nter@22015 31
samuel_trassare@11724 32 ./configure $CONFIGURE_ARGS &&
samuel_trassare@11724 33 make &&
pascal@15166 34 make install &&
Hans-G?nter@22015 35
pascal@15166 36 rm -f $DESTDIR/usr/bin/tcsh.old
samuel_trassare@11724 37 }
samuel_trassare@11724 38
samuel_trassare@11724 39 # Rules to gen a SliTaz package suitable for Tazpkg.
samuel_trassare@11724 40 genpkg_rules()
samuel_trassare@11724 41 {
Hans-G?nter@22015 42 mkdir -p $fs/usr/bin
Hans-G?nter@22015 43 mkdir -p $fs/usr/share
Hans-G?nter@22015 44
Hans-G?nter@22015 45 cp -a $install/usr/bin/tcsh $fs/usr/bin
Hans-G?nter@22015 46 cp -ar $install/usr/share/locale $fs/usr/share
samuel_trassare@11724 47 }