wok view tk/receipt @ rev 25344

updated tahoe-lafs (1.13.0 -> 1.17.1)
author Hans-G?nter Theisgen
date Mon Jul 25 07:43:39 2022 +0100 (2022-07-25)
parents a990d22836c7
children d310bf389e06
line source
1 # SliTaz package receipt.
3 PACKAGE="tk"
4 VERSION="8.6.10"
5 CATEGORY="development"
6 TAGS="programming language"
7 SHORT_DESC="The TCL gui toolkit."
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/tcl/$TARBALL"
15 DEPENDS="expat fontconfig freetype tcl xorg-libX11 xorg-libXau xorg-libXdmcp \
16 xorg-libXft xorg-libXrender xorg-libXss zlib"
17 BUILD_DEPENDS="tcl-dev xorg-libX11-dev"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://sourceforge.net/projects/tcl/files/Tcl/ 2>/dev/null | \
25 sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
26 sed '/scope="row/!d;s|.*/Tcl/||;s|/.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 case "$ARCH" in
33 arm*)
34 ARCH_ARGS="--with-tcl=/cross/arm/sysroot/usr/lib"
35 export tcl_cv_strtod_buggy=1
36 export ac_cv_func_strtod=yes ;;
37 esac
39 cd $src/unix &&
40 ./configure \
41 --prefix=/usr \
42 --enable-threads \
43 --enable-shared \
44 $ARCH_ARGS \
45 ${CONFIGURE_ARGS} &&
46 make &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 cp -a $install/usr/lib/tk${VERSION:0:3} $fs/usr/lib
59 cd $fs/usr/bin
60 ln -s wish${VERSION:0:3} wish
61 }