Guest User

tclx PKGBUILD

a guest
Mar 20th, 2015
218
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Hussain Jasim <hussainmkj@gmail.com>
  2. # Contributors: Flemming Madsen (arch at themadsens dot dk), Sébastien Duquette <ekse.0x@gmail.com>
  3. pkgname=tclx
  4. pkgver=8.4
  5. _tclsrcver=8.6.4
  6. pkgrel=2
  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=8.6.4' '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.         "interperrorline.patch")
  15. md5sums=('395c2fbe35e1723570b005161b9fc8f8'
  16.          'd7cbb91f1ded1919370a30edd1534304'
  17.          '3254188674bfa4cdf58605d0d69586d0')
  18.  
  19. prepare() {
  20.   patch -d $srcdir/tclx${pkgver}/generic < interperrorline.patch
  21. }
  22.  
  23. build() {
  24.   cd $srcdir/${pkgname}${pkgver}
  25. cp /usr/lib/tclConfig.sh $srcdir
  26.   echo "TCL_SRC_DIR=$startdir/tcl$_tclsrcver" >> ../tclConfig.sh
  27.   [ "$NOEXTRACT" == 1 ] || ./configure --prefix=/usr --enable-share \
  28.                            --enable-gcc --with-tcl=$srcdir
  29.   _tclsrc="TCL_SRC_DIR=$srcdir/tcl$_tclsrcver \
  30.           TCL_TOP_DIR_NATIVE=$srcdir/tcl$_tclsrcver"
  31.   make $_tclsrc || return 1
  32. }
  33.  
  34. package() {
  35. cd $srcdir/$pkgname$pkgver
  36.   make $_tclsrc DESTDIR="$pkgdir" mandir="/usr/share/man" install
  37. install -D -m644 license.terms "$pkgdir/usr/share/licenses/$pkgname/license.terms"
  38. }
RAW Paste Data