[arch-commits] Commit in tcl/trunk (PKGBUILD)
Allan McRae
allan at archlinux.org
Thu Dec 20 13:10:59 UTC 2012
Date: Thursday, December 20, 2012 @ 08:10:58
Author: allan
Revision: 173662
upgpkg: tcl 8.6.0-1
major upstream update
Modified:
tcl/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++-----------------
1 file changed, 6 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-12-20 12:44:56 UTC (rev 173661)
+++ PKGBUILD 2012-12-20 13:10:58 UTC (rev 173662)
@@ -3,23 +3,20 @@
# Committer: Judd Vinet <jvinet at zeroflux.org>
pkgname=tcl
-pkgver=8.5.13
+pkgver=8.6.0
pkgrel=1
pkgdesc="The Tcl scripting language"
arch=('i686' 'x86_64')
url="http://tcl.sourceforge.net/"
license=('custom')
source=(http://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
-md5sums=('fa3a9bf9b2d6ed2431f1baa46f4058b8')
+md5sums=('669b0103431babff2494f3f2637eb864')
build() {
cd ${srcdir}/tcl${pkgver}/unix
- if [ "$CARCH" = "x86_64" ]; then
- ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
- else
- ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-64bit
- fi
+ [[ $CARCH == "x86_64" ]] && BIT="--enable-64bit"
+ ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads $BIT
make
}
@@ -34,19 +31,11 @@
cd ${srcdir}/tcl${pkgver}/unix
make INSTALL_ROOT=${pkgdir} install install-private-headers
- ln -sf tclsh8.5 ${pkgdir}/usr/bin/tclsh
+ ln -sf tclsh8.6 ${pkgdir}/usr/bin/tclsh
# install license
install -Dm644 ../license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
# remove buildroot traces
- sed -i \
- -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L/usr/lib," \
- -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/include'," \
- -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/lib," \
- -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/lib," \
- -e "s,^TCL_LIB_FILE='libtcl8.5..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl8.5\$\{TCL_DBGX\}.so\"," \
- -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/lib'," \
- -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/lib'," \
- ${pkgdir}/usr/lib/tclConfig.sh
+ sed -i "s#${srcdir}#/usr/src#" ${pkgdir}/usr/lib/{tcl,tdbc1.0.0/tdbc,itcl4.0.0/itcl}Config.sh
}
More information about the arch-commits
mailing list