[arch-commits] Commit in tk/trunk (PKGBUILD)
Allan McRae
allan at archlinux.org
Tue Jul 1 09:34:39 UTC 2008
Date: Tuesday, July 1, 2008 @ 05:34:39
Author: allan
Revision: 3825
upgpkg: tk 8.5.3-1
upstream update
patch added for xproto 7.0.13 compaibility
Modified:
tk/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++--------------
1 file changed, 23 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-07-01 09:10:55 UTC (rev 3824)
+++ PKGBUILD 2008-07-01 09:34:39 UTC (rev 3825)
@@ -1,27 +1,36 @@
# $Id$
-# Maintainer: dorphell <dorphell at archlinux.org>
-# Committer: Judd Vinet <jvinet at zeroflux.org>
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Judd Vinet <jvinet at zeroflux.org>
+
pkgname=tk
-pkgver=8.5.2
+pkgver=8.5.3
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=('bd014bd3e1a818e06ad375b95241452d')
+source=(http://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz
+ xproto-7-0-13.patch)
+md5sums=('c7d2ef187d0f313850689cda20148ec3'
+ '024f8db9663bd7035feac59aabd7e516')
build() {
- cd ${startdir}/src/tk${pkgver}/unix
-if [ "$CARCH" = "x86_64" ]; then
- ./configure --prefix=/usr --enable-threads --enable-64bit
- else ./configure --prefix=/usr --enable-threads --disable-64bit
-fi
+ cd ${srcdir}/tk${pkgver}
+ patch -Np1 -i ${srcdir}/xproto-7-0-13.patch
+
+ cd ${srcdir}/tk${pkgver}/unix
+ if [ "$CARCH" = "x86_64" ]; then
+ ./configure --prefix=/usr --enable-threads --enable-64bit
+ else
+ ./configure --prefix=/usr --enable-threads --disable-64bit
+ fi
+
make
- make INSTALL_ROOT=${startdir}/pkg install install-private-headers
- ln -sf wish8.5 ${startdir}/pkg/usr/bin/wish
+ make INSTALL_ROOT=${pkgdir} install install-private-headers
+ ln -sf wish8.5 ${pkgdir}/usr/bin/wish
# install license
- install -Dm644 ../license.terms $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 ../license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
# remove buildroot traces / fixes #3602
sed -i \
@@ -29,5 +38,5 @@
-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," \
- $startdir/pkg/usr/lib/tkConfig.sh
+ ${pkgdir}/usr/lib/tkConfig.sh
}
More information about the arch-commits
mailing list