summaryrefslogtreecommitdiff
path: root/extra/tk
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-12-25 13:34:49 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-12-25 13:34:49 +0100
commit416f65d4b97ff26629ddfa1b40ea2041c3e75358 (patch)
tree61e28b785eb3aa9e55ea269e170277b3d3b6e1fa /extra/tk
parentb14277452871db749ef4faa7db7e69bfce39f1a7 (diff)
parent6fbdd2899f39266e458531dcffefb85b9ce8d1b9 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/libnewt/PKGBUILD community/luasec/PKGBUILD extra/expect/PKGBUILD extra/fribidi/PKGBUILD extra/goffice/PKGBUILD extra/pidgin/PKGBUILD extra/postgresql/PKGBUILD extra/python/PKGBUILD extra/ruby/PKGBUILD
Diffstat (limited to 'extra/tk')
-rw-r--r--extra/tk/PKGBUILD30
1 files changed, 8 insertions, 22 deletions
diff --git a/extra/tk/PKGBUILD b/extra/tk/PKGBUILD
index 1dce45686..807a94be2 100644
--- a/extra/tk/PKGBUILD
+++ b/extra/tk/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 170723 2012-11-10 04:52:11Z allan $
+# $Id: PKGBUILD 173851 2012-12-25 00:34:54Z foutrelis $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=tk
-pkgver=8.5.13
+pkgver=8.6.0
pkgrel=1
pkgdesc="A windowing toolkit for use with tcl"
arch=('i686' 'x86_64' 'mips64el')
@@ -11,16 +11,13 @@ 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=('1fc7dbb7495160756dbc805224afa360')
+md5sums=('b883a1a3c489c17413fb602a94bf54e8')
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
+ [[ $CARCH == "x86_64" ]] && BIT="--enable-64bit"
+ ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads $BIT
make
}
@@ -34,23 +31,12 @@ 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
+ ln -sf wish8.6 ${pkgdir}/usr/bin/wish
# 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
+ sed -i "s#${srcdir}#/usr/src#" ${pkgdir}/usr/lib/tkConfig.sh
+
}