summaryrefslogtreecommitdiff
path: root/repo/tcl
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/tcl
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/tcl')
-rw-r--r--repo/tcl/tcl.xibuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/repo/tcl/tcl.xibuild b/repo/tcl/tcl.xibuild
new file mode 100644
index 0000000..41513e7
--- /dev/null
+++ b/repo/tcl/tcl.xibuild
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="zlib"
+
+PKG_VER=8.6.11
+SOURCE=https://github.com/tcltk/tcl/archive/refs/tags/core-$( echo $PKG_VER | sed "s|\.|-|g").tar.gz
+DESC="the Tool Command language, a robust general purpose scripting language"
+
+
+build () {
+ SRCDIR=$(pwd)
+ cd unix
+ ./configure --prefix=/usr --mandir=/usr/share/man $([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)
+
+ make
+
+ sed -e "s|$SRCDIR/unix|/usr/lib|" \
+ -e "s|$SRCDIR|/usr/include|" \
+ -i tclConfig.sh
+
+ sed -e "s|$SRCDIR/unix/pkgs/tdbc1.1.2|/usr/lib/tdbc1.1.2|" \
+ -e "s|$SRCDIR/pkgs/tdbc1.1.2/generic|/usr/include|" \
+ -e "s|$SRCDIR/pkgs/tdbc1.1.2/library|/usr/lib/tcl8.6|" \
+ -e "s|$SRCDIR/pkgs/tdbc1.1.2|/usr/include|" \
+ -i pkgs/tdbc1.1.2/tdbcConfig.sh
+
+ sed -e "s|$SRCDIR/unix/pkgs/itcl4.2.1|/usr/lib/itcl4.2.1|" \
+ -e "s|$SRCDIR/pkgs/itcl4.2.1/generic|/usr/include|" \
+ -e "s|$SRCDIR/pkgs/itcl4.2.1|/usr/include|" \
+ -i pkgs/itcl4.2.1/itclConfig.sh
+
+ unset SRCDIR
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+
+ chmod u+w $PKG_DEST/usr/lib/libtcl$(echo $PKG_DEST | cut -d. -f-2).so
+
+ make DESTDIR=$PKG_DEST install-private-headers
+
+ ln $PKG_DEST/usr/bin/tclsh* $PKG_DEST/usr/bin/tclsh
+ cp -f tclsh9 $PKG_DEST/usr/bin/tclsh
+ mv $PKG_DEST/usr/share/man/man3/Thread.3 \
+ $PKG_DEST/usr/share/man/man3/Tcl_Thread.3
+
+}
+
+