summaryrefslogtreecommitdiff
path: root/psibuilds/tcl.psibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-02 23:21:53 +0100
committerdavidovski <david@davidovski.xyz>2021-10-02 23:21:53 +0100
commit16e799786f34721e646e14a2b7e7ab3816137f1a (patch)
tree82c05b6b1d5fc9d33cd864b27bfb1e3af3f01536 /psibuilds/tcl.psibuild
parentc4e0c314e6eac6964328c9c3daeaa232ea06e965 (diff)
added packages
Diffstat (limited to 'psibuilds/tcl.psibuild')
-rw-r--r--psibuilds/tcl.psibuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/psibuilds/tcl.psibuild b/psibuilds/tcl.psibuild
new file mode 100644
index 0000000..16442f4
--- /dev/null
+++ b/psibuilds/tcl.psibuild
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+DEPS=(zlib)
+
+SOURCE=https://github.com/tcltk/tcl
+
+
+build () {
+ SRCDIR=$(pwd)
+ cd unix
+ ./configure --prefix=/usr --mandir=/usr/share/man $([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)
+
+ make test
+
+ make DESTDIR=$PKG_DEST install
+
+ chmod -v u+w $PKG_DEST/usr/lib/libtcl8.6.so
+
+ make DESTDIR=$PKG_DEST install-private-headers
+}
+
+package () {
+ cp -f tclsh8.6 $PKG_DEST/usr/bin/tclsh
+ mv $PKG_DEST/usr/share/man/man3/{Thread,Tcl_Thread}.3
+
+}
+
+