[arch-commits] Commit in tk/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Thu Aug 8 07:38:16 UTC 2013


    Date: Thursday, August 8, 2013 @ 09:38:15
  Author: eric
Revision: 192226

upgpkg: tk 8.6.0-2

Add unversioned library symlink, Remove rpath

Modified:
  tk/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++-----------------
 1 file changed, 12 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-08-08 07:36:39 UTC (rev 192225)
+++ PKGBUILD	2013-08-08 07:38:15 UTC (rev 192226)
@@ -1,42 +1,37 @@
 # $Id$
-# Maintainer: Allan McRae <allan at archlinux.org>
-# Contributor: Judd Vinet <jvinet at zeroflux.org>
+# Maintainer: Eric Bélanger <eric at archlinux.org>
 
 pkgname=tk
 pkgver=8.6.0
-pkgrel=1
+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)
-md5sums=('b883a1a3c489c17413fb602a94bf54e8')
+sha1sums=('c42e160285e2d26eae8c2a1e6c6f86db4fa7663b')
 
 build() {
-  cd ${srcdir}/tk${pkgver}/unix
-
+  cd tk${pkgver}/unix
   [[ $CARCH == "x86_64" ]] && BIT="--enable-64bit"
-  ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads $BIT
-  
+  ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-rpath $BIT
   make
 }
 
 #check() {
-#  cd ${srcdir}/tk${pkgver}/unix
+#  cd tk${pkgver}/unix
 #  make test
 #}
 
 package() {
-  cd ${srcdir}/tk${pkgver}/unix
+  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"
 
-  make INSTALL_ROOT=${pkgdir} install install-private-headers
-  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 "s#${srcdir}#/usr/src#" ${pkgdir}/usr/lib/tkConfig.sh
+  sed -i "s#${srcdir}#/usr/src#" "${pkgdir}/usr/lib/tkConfig.sh"
 
 }




More information about the arch-commits mailing list