summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZee Eichel <zee@dracos-linux.org>2019-05-20 04:16:25 +0700
committerZee Eichel <zee@dracos-linux.org>2019-05-20 04:16:25 +0700
commit4686a0be4bf5fe830a003c52636ac7869a918466 (patch)
tree4caa84ab567620c61a39c790c09726105952e4f4
parente9202e0faaf56c5162130493c6b8e9bbea577278 (diff)
downloaddemit.main-core-git.repo-4686a0be4bf5fe830a003c52636ac7869a918466.tar.gz
demit.main-core-git.repo-4686a0be4bf5fe830a003c52636ac7869a918466.tar.bz2
demit.main-core-git.repo-4686a0be4bf5fe830a003c52636ac7869a918466.zip
adding tcl
-rw-r--r--core-system/tcl/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/core-system/tcl/PKGBUILD b/core-system/tcl/PKGBUILD
new file mode 100644
index 0000000..9ecd513
--- /dev/null
+++ b/core-system/tcl/PKGBUILD
@@ -0,0 +1,57 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=tcl
+_tclmajor=8.6
+_tclminor=9
+_tdbcver=1.1.0
+_itclver=4.1.2
+pkgver=${_tclmajor}.${_tclminor}
+pkgrel=1
+pkgdesc="The Tcl scripting language"
+arch=('x86_64')
+url="http://tcl.sourceforge.net/"
+license=('custom')
+source=("https://downloads.sourceforge.net/tcl/tcl${pkgver}-src.tar.gz")
+sha256sums=("ad0cd2de2c87b9ba8086b43957a0de3eb2eb565c7159d5f53ccbba3feb915f4e")
+
+build() {
+ cd "${srcdir}/tcl${pkgver}/unix"
+
+ rm -rf ../pkgs/sqlite*
+
+ ./configure --prefix=/usr \
+ --enable-64bit \
+ --enable-threads \
+ --without-tzdata
+
+ make
+}
+
+package() {
+ cd "${srcdir}/tcl${pkgver}/unix"
+
+ sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
+ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
+ -i tclConfig.sh
+
+ make install install-private-headers DESTDIR="${pkgdir}"
+
+ ln -sfv tclsh${_tclmajor} "${pkgdir}/usr/bin/tclsh"
+
+ chmod 644 "${pkgdir}/usr/lib/libtclstub${_tclmajor}.a"
+
+ sed -e "s#${PWD%/unix}/unix/pkgs/tdbc${_tdbcver}#/usr/lib/tdbc${_tdbcver}#" \
+ -e "s#${PWD%/unix}/pkgs/tdbc${_tdbcver}/generic#/usr/include#" \
+ -e "s#${PWD%/unix}/pkgs/tdbc${_tdbcver}/library#/usr/lib/tcl${_tclmajor}#" \
+ -e "s#${PWD%/unix}/pkgs/tdbc${_tdbcver}#/usr/include#" \
+ -i "${pkgdir}/usr/lib/tdbc${_tdbcver}/tdbcConfig.sh"
+
+ sed -e "s#${PWD%/unix}/unix/pkgs/itcl${_itclver}#/usr/lib/itcl${_itclver}#" \
+ -e "s#${PWD%/unix}/pkgs/itcl${_itclver}/generic#/usr/include#" \
+ -e "s#${PWD%/unix}/pkgs/itcl${_itclver}#/usr/include#" \
+ -i "${pkgdir}/usr/lib/itcl${_itclver}/itclConfig.sh"
+ rm -rf ${pkgdir}/usr/man
+}
+
+
+