[arch-commits] Commit in lib32-tcl (3 files)

Maxime Gauduin alucryd at archlinux.org
Fri Aug 19 20:25:45 UTC 2016


    Date: Friday, August 19, 2016 @ 20:25:45
  Author: alucryd
Revision: 187104

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-tcl/repos/
  lib32-tcl/repos/multilib-x86_64/
  lib32-tcl/repos/multilib-x86_64/PKGBUILD
    (from rev 187103, lib32-tcl/trunk/PKGBUILD)

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

Copied: lib32-tcl/repos/multilib-x86_64/PKGBUILD (from rev 187103, lib32-tcl/trunk/PKGBUILD)
===================================================================
--- repos/multilib-x86_64/PKGBUILD	                        (rev 0)
+++ repos/multilib-x86_64/PKGBUILD	2016-08-19 20:25:45 UTC (rev 187104)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Miguel Revilla <yo at miguelrevilla.com>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+
+pkgname=lib32-tcl
+pkgver=8.6.6
+pkgrel=1
+pkgdesc='The Tcl scripting language'
+arch=('x86_64')
+url='http://tcl.sourceforge.net/'
+license=('custom')
+depends=('lib32-glibc' 'lib32-zlib' 'tcl')
+makedepends=('gcc-multilib')
+source=("http://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz")
+sha256sums=('a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07')
+
+prepare() {
+  cd tcl${pkgver}
+
+  rm -rf pkgs/sqlite3*
+}
+
+build() {
+  cd tcl${pkgver}/unix
+
+  export CC='gcc -m32'
+  export CXX='g++ -m32'
+  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+  ./configure \
+    --prefix='/usr' \
+    --libdir='/usr/lib32' \
+    --mandir='/usr/share/man' \
+    --enable-threads
+  make
+}
+
+package() {
+  cd tcl${pkgver}/unix
+
+  make INSTALL_ROOT="${pkgdir}" install install-private-headers
+  rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
+  rm -rf "${pkgdir}"/usr/lib32/{libtclstub8.6.a,tdbc1.0.3/libtdbcstub1.0.3.a}
+  ln -sf libtcl${pkgver%.*}.so "${pkgdir}"/usr/lib32/libtcl.so
+
+  sed -e "s#${srcdir}/tcl${pkgver}/unix#/usr/lib32#" \
+      -e "s#${srcdir}/tcl${pkgver}#/usr/include#" \
+      -i "${pkgdir}/usr/lib32/tclConfig.sh"
+
+  tdbcver=1.0.4
+  sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/tdbc${tdbcver}#/usr/lib32/tdbc${tdbcver}#" \
+      -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc${tdbcver}/generic#/usr/include#" \
+      -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc${tdbcver}/library#/usr/lib32/tcl${pkgver%.*}#" \
+      -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc${tdbcver}#/usr/include#" \
+      -i "${pkgdir}/usr/lib32/tdbc${tdbcver}/tdbcConfig.sh"
+
+  ictlver=4.0.5
+  sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/itcl${ictlver}#/usr/lib32/${ictlver}#" \
+      -e "s#${srcdir}/tcl${pkgver}/pkgs/itcl${ictlver}/generic#/usr/include#" \
+      -e "s#${srcdir}/tcl${pkgver}/pkgs/itcl${ictlver}#/usr/include#" \
+      -i "${pkgdir}/usr/lib32/itcl${ictlver}/itclConfig.sh"
+
+
+  install -dm 755 -p "${pkgdir}"/usr/share/licenses
+  ln -s tcl "${pkgdir}"/usr/share/licenses/lib32-tcl
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list