SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tcl"

# SliTaz package receipt.

PACKAGE="tcl"
VERSION="8.6.12"
CATEGORY="development"
TAGS="language programming"
SHORT_DESC="The Tool Command Language."
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.tcl.tk/"

TARBALL="${PACKAGE}${VERSION}-src.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \
    sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    case "$ARCH" in
        arm*) 
            export tcl_cv_strtod_buggy=1
            export ac_cv_func_strtod=yes 
            sed -i s'#./${TCL_EXE}#/usr/bin/tclsh#' unix/Makefile.in ;;
    esac

    cd $src/unix
    ./configure                \
         --enable-shared        \
        --disable-symbols        \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make install install-private-headers
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/lib/tcl${VERSION:0:1}*    $fs/usr/lib
    cp -a $install/usr/lib/*.so*            $fs/usr/lib
    cp -a $install/usr/bin                $fs/usr

    ln -sf tclsh${VERSION:0:3}            $fs/usr/bin/tclsh
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)