# $Id: PKGBUILD 192227 2013-08-08 07:38:43Z eric $ # 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') depends=("tcl=${pkgver}" 'libxss' 'libxft') 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 } #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" }