updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / tclx / PKGBUILD
blobcde9a2cca5249c26710535b5a657d7dd4bd4e3e1
1 # Maintainer: Sébastien Duquette <ekse.0x@gmail.com>
2 # Contributor: Flemming Madsen (arch at themadsens dot dk)
3 pkgname=tclx
4 pkgver=8.4
5 _tclsrcver=8.4.12
6 pkgrel=1
7 pkgdesc="Provides OS primitives, file scanning, data records etc. for Tcl"
8 url="http://tclx.sourceforge.net"
9 arch=('i686' 'x86_64')
10 license="BSD"
11 depends=('tcl' 'tk')
12 source=("http://downloads.sourceforge.net/sourceforge/tclx/tclx${pkgver}.tar.bz2" \
13         "http://downloads.sourceforge.net/sourceforge/tcl/tcl${_tclsrcver}-src.tar.gz")
14 md5sums=('395c2fbe35e1723570b005161b9fc8f8' '7480432d8730263f267952788eb4839b')
16 build() {
17   cd $startdir/src/tclx${pkgver}
18   #[ "$NOEXTRACT" == 1 ] || patch < $startdir/configure.patch
19   cp /usr/lib/tclConfig.sh ..
20   echo "TCL_SRC_DIR=$startdir/src/tcl$_tclsrcver" >> ../tclConfig.sh
21   [ "$NOEXTRACT" == 1 ] || ./configure --prefix=/usr --enable-share \
22                            --enable-gcc --with-tcl=$startdir/src
23   _tclsrc="TCL_SRC_DIR=$startdir/src/tcl$_tclsrcver \
24            TCL_TOP_DIR_NATIVE=$startdir/src/tcl$_tclsrcver"
25   make $_tclsrc || return 1
26   make $_tclsrc prefix=$startdir/pkg/usr \
27                 exec_prefix=$startdir/pkg/usr install