wok view tcsh/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | ac8ca9758df1 |
children | d4f09ab2b9bb |
line source
1 # SliTaz package receipt.
3 PACKAGE="tcsh"
4 VERSION="6.23.02"
5 CATEGORY="system-tools"
6 SHORT_DESC="Enhanced, compatible Berkeley UNIX C shell."
7 MAINTAINER="samuel_trassare@yahoo.com"
8 LICENSE="BSD"
9 WEB_SITE="https://www.tcsh.org/"
11 TARBALL="TCSH${VERSION//./_}.tar.gz"
12 WGET_URL="https://github.com/tcsh-org/$PACKAGE/archive/$TARBALL"
14 DEPENDS="ncurses"
15 BUILD_DEPENDS="ncurses-dev"
16 #The following build dep will be necessary when glibc ups to 2.14.
17 #BUILD_DEPENDS="libtirpc"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/TCSH\(.*\).tar.*|\1|;s|_|.|g;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -ltinfo"
29 mkdir -p $DESTDIR/usr/bin
30 touch $DESTDIR/usr/bin/tcsh
32 ./configure $CONFIGURE_ARGS &&
33 make &&
34 make install &&
36 rm -f $DESTDIR/usr/bin/tcsh.old
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 mkdir -p $fs/usr/share
45 cp -a $install/usr/bin/tcsh $fs/usr/bin
46 cp -ar $install/usr/share/locale $fs/usr/share
47 }