[arch-commits] CVS update of extra/modules/perl-term-readkey (PKGBUILD)
Eric Belanger
eric at archlinux.org
Tue Jan 22 02:56:52 UTC 2008
Date: Monday, January 21, 2008 @ 21:56:52
Author: eric
Path: /home/cvs-extra/extra/modules/perl-term-readkey
Modified: PKGBUILD (1.1 -> 1.2)
upgpkg: perl-term-readkey 2.30-2
perl 5.10.0 rebuilt, added arch and license field
----------+
PKGBUILD | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
Index: extra/modules/perl-term-readkey/PKGBUILD
diff -u extra/modules/perl-term-readkey/PKGBUILD:1.1 extra/modules/perl-term-readkey/PKGBUILD:1.2
--- extra/modules/perl-term-readkey/PKGBUILD:1.1 Mon Oct 16 01:55:39 2006
+++ extra/modules/perl-term-readkey/PKGBUILD Mon Jan 21 21:56:51 2008
@@ -1,23 +1,28 @@
+# $Id: PKGBUILD,v 1.2 2008/01/22 02:56:51 eric Exp $
# Contributor: Wael Nasreddine <gandalf at siemens-mobiles.org>
pkgname=perl-term-readkey
pkgver=2.30
-pkgrel=1
+pkgrel=2
pkgdesc="A perl module dedicated to providing simple control over terminal driver modes."
-depends=('perl' 'glibc')
+arch=('i686' 'x86_64')
+license=('custom')
+depends=('perl>=5.10.0' 'glibc')
url="http://cpan.org/modules/by-module/Term"
source=(http://cpan.org/modules/by-module/Term/TermReadKey-$pkgver.tar.gz)
md5sums=('f0ef2cea8acfbcc58d865c05b0c7e1ff')
-options=('noemptydirs')
+options=('!emptydirs')
build()
{
cd $startdir/src/TermReadKey-$pkgver
-
- perl Makefile.PL || return 1
+ # install module in vendor directories.
+ perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make DESTDIR=$startdir/pkg install || return 1
+ install -d $startdir/pkg/usr/share/licenses/$pkgname/
+ head -7 README > $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
- # Change installation directory to current and remove directory that contains perllocal.pod
- mv $startdir/pkg/usr/lib/perl5/site_perl/?.?.? $startdir/pkg/usr/lib/perl5/site_perl/current
- rm -r $startdir/pkg/usr/lib/perl5/?.?.?
+ # remove perllocal.pod and .packlist
+ find ${startdir}/pkg -name perllocal.pod -delete
+ find ${startdir}/pkg -name .packlist -delete
}
More information about the arch-commits
mailing list