diff options
author | root <root@rshg054.dnsready.net> | 2012-07-30 00:02:11 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-07-30 00:02:11 +0000 |
commit | 4982c269b318734d01ad30c6592fbb73565ceb12 (patch) | |
tree | f8696db6a843a65a264dbfed979f087b1d62c011 /testing/tk | |
parent | ddab05fd84b7fa1d67fcd18b532f0427189d8df1 (diff) |
Mon Jul 30 00:02:11 UTC 2012
Diffstat (limited to 'testing/tk')
-rw-r--r-- | testing/tk/PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/testing/tk/PKGBUILD b/testing/tk/PKGBUILD new file mode 100644 index 000000000..cc57372c8 --- /dev/null +++ b/testing/tk/PKGBUILD @@ -0,0 +1,56 @@ +# $Id: PKGBUILD 164249 2012-07-28 09:52:37Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: Judd Vinet <jvinet@zeroflux.org> + +pkgname=tk +pkgver=8.5.12 +pkgrel=1 +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) +md5sums=('a01640176845c1f654a412cfc9bab13b') + +build() { + cd ${srcdir}/tk${pkgver}/unix + + if [ "$CARCH" = "x86_64" ]; then + ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit + else + ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-64bit + fi + + make +} + +#check() { +# cd ${srcdir}/tk${pkgver}/unix +# make test +#} + +package() { + cd ${srcdir}/tk${pkgver}/unix + + make INSTALL_ROOT=${pkgdir} install install-private-headers + ln -sf wish8.5 ${pkgdir}/usr/bin/wish + + # install private headers (FS#14388) + cd ${srcdir}/tk${pkgver} + for dir in compat generic generic/ttk unix; do + install -dm755 ${pkgdir}/usr/include/tk-private/$dir + install -m644 -t ${pkgdir}/usr/include/tk-private/$dir $dir/*.h + done + + # install license + install -Dm644 license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + + # remove buildroot traces + sed -i \ + -e "s,^TK_BUILD_LIB_SPEC='-L.*/unix,TK_BUILD_LIB_SPEC='-L/usr/lib," \ + -e "s,^TK_SRC_DIR='.*',TK_SRC_DIR='/usr/include'," \ + -e "s,^TK_BUILD_STUB_LIB_SPEC='-L.*/unix,TK_BUILD_STUB_LIB_SPEC='-L/usr/lib," \ + -e "s,^TK_BUILD_STUB_LIB_PATH='.*/unix,TK_BUILD_STUB_LIB_PATH='/usr/lib," \ + ${pkgdir}/usr/lib/tkConfig.sh +} |