[arch-commits] Commit in perl-tk/trunk (PKGBUILD)
Rémy Oudompheng
remy at archlinux.org
Sun Dec 12 10:35:16 UTC 2010
Date: Sunday, December 12, 2010 @ 05:35:16
Author: remy
Revision: 102852
upgpkg: perl-tk 804.029-2
Rebuild for perl 5.12.2
Modified:
perl-tk/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-12-12 10:21:22 UTC (rev 102851)
+++ PKGBUILD 2010-12-12 10:35:16 UTC (rev 102852)
@@ -6,7 +6,7 @@
pkgname=perl-tk
_cpanname=Tk
pkgver=804.029
-pkgrel=1
+pkgrel=2
pkgdesc="A graphical user interface toolkit for Perl"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/${_cpanname}"
@@ -20,10 +20,16 @@
build() {
cd $srcdir/${_cpanname}-$pkgver
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
/bin/chmod -R u+w *
- make || return 1
- make install DESTDIR=$pkgdir || return 1
+ # The Xlib header is wrong...
+ sed -i 's/XKeycodeToKeysym\(.*\)unsigned int/XKeycodeToKeysym\1KeyCode/' pTk/Xlib.h
+ make
+}
+
+package() {
+ cd $srcdir/${_cpanname}-$pkgver
+ make install DESTDIR=$pkgdir
find $pkgdir -name '.packlist' -delete
find $pkgdir -name '*.pod' -delete
More information about the arch-commits
mailing list