summaryrefslogtreecommitdiff
path: root/extra/tcl
diff options
context:
space:
mode:
Diffstat (limited to 'extra/tcl')
-rw-r--r--extra/tcl/PKGBUILD28
1 files changed, 19 insertions, 9 deletions
diff --git a/extra/tcl/PKGBUILD b/extra/tcl/PKGBUILD
index e5eaa0140..22d4c871f 100644
--- a/extra/tcl/PKGBUILD
+++ b/extra/tcl/PKGBUILD
@@ -1,24 +1,21 @@
-# $Id: PKGBUILD 192225 2013-08-08 07:36:39Z eric $
+# $Id: PKGBUILD 194660 2013-09-20 16:55:21Z eric $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=tcl
-pkgver=8.6.0
-pkgrel=5
+pkgver=8.6.1
+pkgrel=1
pkgdesc="The Tcl scripting language"
arch=('i686' 'x86_64' 'mips64el')
url="http://tcl.sourceforge.net/"
license=('custom')
depends=('zlib')
source=(http://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
-sha1sums=('fc57fc08ab113740a702bb67d4f350f8ec85ef58')
+sha1sums=('5c83d44152cc0496cc0847a2495f659502a30e40')
prepare() {
cd tcl${pkgver}
# we build the tcl sqlite interface in sqlite-tcl package
rm -rf pkgs/sqlite3*
-
- sed -i 's/#define DUPTRAVERSE_MAX_DEPTH 500/#define DUPTRAVERSE_MAX_DEPTH 5000/' \
- generic/regc_nfa.c
}
build() {
@@ -36,10 +33,23 @@ check() {
package() {
cd tcl${pkgver}/unix
make INSTALL_ROOT="${pkgdir}" install install-private-headers
- ln -sf tclsh8.6 "${pkgdir}/usr/bin/tclsh"
+ ln -sf tclsh${pkgver%.*} "${pkgdir}/usr/bin/tclsh"
ln -sf libtcl${pkgver%.*}.so "${pkgdir}/usr/lib/libtcl.so"
install -Dm644 ../license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# remove buildroot traces
- sed -i "s#${srcdir}#/usr/src#" "${pkgdir}"/usr/lib/{tcl,tdbc1.0.0/tdbc,itcl4.0.0/itcl}Config.sh
+ sed -e "s#${srcdir}/tcl${pkgver}/unix#/usr/lib#" \
+ -e "s#${srcdir}/tcl${pkgver}#/usr/include#" \
+ -i "${pkgdir}/usr/lib/tclConfig.sh"
+
+ sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/tdbc1.0.0#/usr/lib/tdbc1.0.0#" \
+ -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc1.0.0/generic#/usr/include#" \
+ -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc1.0.0/library#/usr/lib/tcl${pkgver%.*}#" \
+ -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc1.0.0#/usr/include#" \
+ -i "${pkgdir}/usr/lib/tdbc1.0.0/tdbcConfig.sh"
+
+ sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/itcl4.0.0#/usr/lib/itcl4.0.0#" \
+ -e "s#${srcdir}/tcl${pkgver}/pkgs/itcl4.0.0/generic#/usr/include#" \
+ -e "s#${srcdir}/tcl${pkgver}/pkgs/itcl4.0.0#/usr/include#" \
+ -i "${pkgdir}/usr/lib/itcl4.0.0/itclConfig.sh"
}