[arch-commits] CVS update of extra/lib/perl-sys-hostname-long (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sun Sep 2 13:38:21 UTC 2007
Date: Sunday, September 2, 2007 @ 09:38:21
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-sys-hostname-long
Modified: PKGBUILD (1.2 -> 1.3)
upgpkg: perl-sys-hostname-long 1.4-2
use new perl methods
----------+
PKGBUILD | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
Index: extra/lib/perl-sys-hostname-long/PKGBUILD
diff -u extra/lib/perl-sys-hostname-long/PKGBUILD:1.2 extra/lib/perl-sys-hostname-long/PKGBUILD:1.3
--- extra/lib/perl-sys-hostname-long/PKGBUILD:1.2 Sun May 28 06:19:47 2006
+++ extra/lib/perl-sys-hostname-long/PKGBUILD Sun Sep 2 09:38:21 2007
@@ -1,25 +1,30 @@
-# $Id: PKGBUILD,v 1.2 2006/05/28 10:19:47 notz Exp $
+# $Id: PKGBUILD,v 1.3 2007/09/02 13:38:21 jgc Exp $
# Maintainer: Dale Blount <dale at archlinux.org>
pkgname=perl-sys-hostname-long
pkgver=1.4
-pkgrel=1
+pkgrel=2
pkgdesc="Perl module getting a full hostname"
arch=(i686 x86_64)
-url="http://search.cpan.org/~scott/Sys-Hostname-Long-$pkgver/lib/Sys/Hostname/Long.pm"
-depends=('perl>=5.8.4-1')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/Sys-Hostname-Long"
+depends=('perl')
+options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/S/SC/SCOTT/Sys-Hostname-Long-$pkgver.tar.gz)
md5sums=('a5b3c23754cbcff10e283d16c42ec3d3')
build() {
cd $startdir/src/Sys-Hostname-Long-$pkgver
- /usr/bin/perl Makefile.PL
- # ugly hack to make install location
- # compatible with newer versions of perl.
- # NOTE: if perl version changes from 5.8.7, change sed line too
- /bin/sed -i "s:5.8.7:current:g" Makefile
- /usr/bin/make || return 1
- /usr/bin/make install DESTDIR=$startdir/pkg
- /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
- /bin/rm $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/Sys/Hostname/Long/.packlist
+ # Force module installation to "current" perl directories.
+ eval `perl -V:archname`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
+ INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
+ INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
+ INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
+ make || return 1
+ make install DESTDIR=${startdir}/pkg
+
+ # 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