[arch-commits] Commit in tcl/repos (4 files)

Allan McRae allan at archlinux.org
Sat Jul 28 09:51:11 UTC 2012


    Date: Saturday, July 28, 2012 @ 05:51:11
  Author: allan
Revision: 164247

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  tcl/repos/testing-i686/
  tcl/repos/testing-i686/PKGBUILD
    (from rev 164246, tcl/trunk/PKGBUILD)
  tcl/repos/testing-x86_64/
  tcl/repos/testing-x86_64/PKGBUILD
    (from rev 164246, tcl/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: tcl/repos/testing-i686/PKGBUILD (from rev 164246, tcl/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-07-28 09:51:11 UTC (rev 164247)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Committer: Judd Vinet <jvinet at zeroflux.org>
+
+pkgname=tcl
+pkgver=8.5.12
+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=('174b2b4c619ba8f96875d8a051917703')
+
+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
+  
+  make
+}
+
+check() {
+  cd ${srcdir}/tcl${pkgver}/unix
+  make test
+}
+
+package()
+{
+  cd ${srcdir}/tcl${pkgver}/unix
+  
+  make INSTALL_ROOT=${pkgdir} install install-private-headers
+  ln -sf tclsh8.5 ${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
+}

Copied: tcl/repos/testing-x86_64/PKGBUILD (from rev 164246, tcl/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-07-28 09:51:11 UTC (rev 164247)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Committer: Judd Vinet <jvinet at zeroflux.org>
+
+pkgname=tcl
+pkgver=8.5.12
+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=('174b2b4c619ba8f96875d8a051917703')
+
+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
+  
+  make
+}
+
+check() {
+  cd ${srcdir}/tcl${pkgver}/unix
+  make test
+}
+
+package()
+{
+  cd ${srcdir}/tcl${pkgver}/unix
+  
+  make INSTALL_ROOT=${pkgdir} install install-private-headers
+  ln -sf tclsh8.5 ${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
+}




More information about the arch-commits mailing list