tcl9
LOW
maintainer pounceandmiss
0 votes
scanned 2026-10-18 13:22:09.532316
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: pounceandmiss <pounceandmiss@proton.me>
2
# Contributor: Caleb Maclennan <caleb@alerque.com>
3
# Contributor: Eric Bélanger <eric@archlinux.org>
4
#
5
# Based on the Arch Linux tcl PKGBUILD.
6
#
7
# Installed into its own prefix (/usr/lib/tcl9) so it can live next to the
8
# repo's tcl 8.6. Only versioned tclsh symlinks are added to /usr/bin.
9
# To build extensions against it use --with-tcl=/usr/lib/tcl9/lib or
10
# PKG_CONFIG_PATH=/usr/lib/tcl9/lib/pkgconfig.
11
12
pkgname=tcl9
13
pkgver=9.1.0
14
pkgrel=1
15
pkgdesc='Powerful, easy-to-learn dynamic programming language (version 9, parallel-installable with tcl 8.6)'
16
arch=(x86_64)
17
url='https://www.tcl-lang.org/'
18
license=(TCL)
19
depends=(glibc zlib)
20
options=(staticlibs !lto)
21
_archive="tcl$pkgver"
22
source=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz")
23
sha256sums=('536c45543f64d6eb11832d97ba3494aacff046fbc5040273bd55258d0e448ff1')
24
25
_prefix=/usr/lib/tcl9
26
27
build() {
28
cd "$_archive/unix"
29
# --disable-zipfs installs the script library as plain files instead of
30
# appending it to libtcl9.1.so, where makepkg's strip would remove it.
31
./configure \
32
--prefix=$_prefix \
33
--enable-threads \
34
--enable-64bit \
35
--disable-zipfs
36
make
37
}
38
39
package() {
40
cd "$_archive/unix"
41
make INSTALL_ROOT="$pkgdir" install install-private-headers
42
chmod 644 "$pkgdir$_prefix/lib/libtclstub.a"
43
install -Dm644 ../license.terms -t "$pkgdir/usr/share/licenses/$pkgname/"
44
45
install -d "$pkgdir/usr/bin"
46
ln -s ../lib/tcl9/bin/tclsh${pkgver%.*} "$pkgdir/usr/bin/tclsh${pkgver%.*}"
47
ln -s ../lib/tcl9/bin/tclsh${pkgver%.*} "$pkgdir/usr/bin/tclsh9"
48
49
# Mirror the source tree layout that extensions (Tk, TEA test targets)
50
# expect under $TCL_SRC_DIR, like Debian's tcl-private
51
local dir
52
for dir in compat generic libtommath unix; do
53
install -Dm644 -t "$pkgdir$_prefix/include/tcl-private/$dir" ../$dir/*.h
54
done
55
ln -s ../../lib/tcl${pkgver%.*} "$pkgdir$_prefix/include/tcl-private/library"
56
57
# remove buildroot traces
58
sed -e "s#$srcdir/$_archive/unix#$_prefix/lib#g" \
59
-e "s#$srcdir/$_archive#$_prefix/include/tcl-private#g" \
60
-i "$pkgdir$_prefix/lib/tclConfig.sh"
61
62
local cfg name
63
for cfg in "$pkgdir$_prefix"/lib/*/*Config.sh; do
64
name=$(basename "$(dirname "$cfg")")
65
sed -e "s#$srcdir/$_archive/unix/pkgs/$name#$_prefix/lib/$name#g" \
66
-e "s#$srcdir/$_archive/pkgs/$name/generic#$_prefix/include#g" \
67
-e "s#$srcdir/$_archive/pkgs/$name/library#$_prefix/lib/tcl${pkgver%.*}#g" \
68
-e "s#$srcdir/$_archive/pkgs/$name#$_prefix/include#g" \
69
-i "$cfg"
70
done
71
}
72
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-18 13:22:09 | Low | 1 |