# Linux Builders Kit 10 Sep 2013 # # Maintainer: Eric BĂ©langer pkgname=tk pkgver=8.6.0 pkgrel=2 pkgdesc="A windowing toolkit for use with tcl" arch=('i686' 'x86_64') url="http://tcl.sourceforge.net/" license=('custom') groups=('dev-lang' 'BLFS') depends=( "tcl=${pkgver}" 'libxft' 'libxss' ) source=(http://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz) sha1sums=('c42e160285e2d26eae8c2a1e6c6f86db4fa7663b') build() { cd tk${pkgver}/unix [[ $CARCH == "x86_64" ]] && BIT="--enable-64bit" ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-rpath $BIT make sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ -i tkConfig.sh } #check() { # cd tk${pkgver}/unix # make test #} package() { cd tk${pkgver}/unix make INSTALL_ROOT="${pkgdir}" install install-private-headers ln -sf wish8.6 "${pkgdir}/usr/bin/wish" ln -sf libtk${pkgver%.*}.so "${pkgdir}/usr/lib/libtk.so" install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # remove buildroot traces sed -i "s#${srcdir}#/usr/src#" "${pkgdir}/usr/lib/tkConfig.sh" }