summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD59
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..108f8fea7e0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lib32-tcl85
+ pkgdesc = The Tcl scripting language, 8.5 series
+ pkgver = 8.5.19
+ pkgrel = 1
+ url = http://tcl.sourceforge.net/
+ arch = x86_64
+ license = custom
+ makedepends = gcc-multilib
+ depends = lib32-glibc
+ depends = tcl85
+ provides = lib32-tcl
+ provides = lib32-tcl=8.5.19
+ options = staticlibs
+ source = http://downloads.sourceforge.net/sourceforge/tcl/tcl8.5.19-src.tar.gz
+ md5sums = 4f4e1c919f6a6dbb37e9a12d429769a6
+
+pkgname = lib32-tcl85
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8bd0ec6eb64
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: b00rt00s ( bomby dot zrzuc at gmail dot com )
+# Contributor: Allan McRae <allan@archlinux.org>
+# Contributor: Weng Xuetian <wengxt@gmail.com>
+# Committer: Judd Vinet <jvinet@zeroflux.org>
+
+_pkgbasename=tcl85
+pkgname=lib32-$_pkgbasename
+pkgver=8.5.19
+pkgrel=1
+pkgdesc="The Tcl scripting language, 8.5 series"
+arch=('x86_64')
+url="http://tcl.sourceforge.net/"
+license=('custom')
+depends=('lib32-glibc' "$_pkgbasename")
+makedepends=('gcc-multilib')
+provides=("lib32-tcl" "lib32-tcl=$pkgver")
+source=(http://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
+md5sums=('4f4e1c919f6a6dbb37e9a12d429769a6')
+options=('staticlibs')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+ cd ${srcdir}/tcl${pkgver}/unix
+
+ # we build the tcl sqlite interface in sqlite-tcl package
+ rm -rf ${srcdir}/tcl${pkgver}/pkgs/sqlite3*
+
+ ./configure --libdir=/usr/lib32 --prefix=/usr --mandir=/usr/share/man \
+ --includedir=/usr/include/tcl8.5
+
+ make
+}
+
+check() {
+ cd ${srcdir}/tcl${pkgver}/unix
+ make test
+}
+
+package()
+{
+ lib_dir_rel=/usr/lib32
+ lib_dir="$pkgdir$lib_dir_rel"
+ cd ${srcdir}/tcl${pkgver}/unix
+
+ make INSTALL_ROOT=${pkgdir} install install-private-headers
+ rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
+ ln -s libtcl8.5.so "$lib_dir/libtcl8.5.so.0"
+ sed -e "s#${srcdir}/tcl${pkgver}/unix#/usr/lib32#" \
+ -e "s#${srcdir}/tcl${pkgver}#/usr/include#" \
+ -i "${pkgdir}/usr/lib32/tclConfig.sh"
+ sed -i "s#${srcdir}#/usr/src#" $lib_dir/tclConfig.sh
+ mkdir $lib_dir/tcl8.5
+ mv $lib_dir/tclConfig.sh $lib_dir/tcl8.5/
+ mv $lib_dir/pkgconfig/tcl.pc $lib_dir/pkgconfig/tcl85.pc
+ install -dm 755 -p "${pkgdir}"/usr/share/licenses
+ ln -s $_pkgbasename "${pkgdir}"/usr/share/licenses/$pkgname
+}