wok-6.x view tcl/receipt @ rev 24765

afpfs-ng,btfs,curlftpfs,ddumbfs,djmount,encfs,exfat-utils,fusecloop,fusedav,fuseiso,httpfs2-fuse: try fuse2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 18 17:45:47 2022 +0000 (2022-03-18)
parents 8f2a606b1fcb
children aa7275c5f402
line source
1 # SliTaz package receipt.
3 PACKAGE="tcl"
4 VERSION="8.6.10"
5 CATEGORY="development"
6 TAGS="language programming"
7 SHORT_DESC="The Tool Command Language."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://www.tcl.tk/"
12 TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 HOST_ARCH="i486 arm"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \
21 sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 case "$ARCH" in
29 arm*)
30 export tcl_cv_strtod_buggy=1
31 export ac_cv_func_strtod=yes
32 sed -i s'#./${TCL_EXE}#/usr/bin/tclsh#' unix/Makefile.in ;;
33 esac
35 cd $src/unix
36 ./configure \
37 --enable-shared \
38 --disable-symbols \
39 --mandir=/usr/share/man \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install install-private-headers
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
50 cp -a $install/usr/lib/tcl${VERSION:0:1}* $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/bin $fs/usr
54 ln -sf tclsh${VERSION:0:3} $fs/usr/bin/tclsh
55 }