diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2013-02-09 10:32:20 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2013-02-09 10:32:20 -0300 |
commit | 6cc893589a6bd208f2b7711f985e17df7a6df816 (patch) | |
tree | c41cb07e4e88c4eff5bc05e44b86b860f96654b8 /core/perl/PKGBUILD | |
parent | 5995e8be41750a8ac397ac358f5c2bedca3a4d1e (diff) | |
parent | f0ab416208be17c176b9430a3537f05b5c653aec (diff) |
Merge branch 'master' of gparabola:abslibre-mips64el
Diffstat (limited to 'core/perl/PKGBUILD')
-rw-r--r-- | core/perl/PKGBUILD | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/core/perl/PKGBUILD b/core/perl/PKGBUILD index 08309dc5e..cc1add1d1 100644 --- a/core/perl/PKGBUILD +++ b/core/perl/PKGBUILD @@ -1,12 +1,13 @@ -# $Id: PKGBUILD 173216 2012-12-13 12:43:19Z bluewind $ +# $Id: PKGBUILD 177560 2013-02-07 09:32:23Z bluewind $ # Maintainer: Florian Pritz <bluewind@xinu.at> -# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Angel Velasquez <angvp@archlinux.org> # Contributor: kevin <kevin.archlinux.org> # Contributor: judd <jvinet.zeroflux.org> -# Contributor: francois <francois.archlinux.org> +# Contributor: francois <francois.archlinux.org> + pkgname=perl pkgver=5.16.2 -pkgrel=2 +pkgrel=3 pkgdesc="A highly capable, feature-rich programming language" arch=(i686 x86_64 'mips64el') license=('GPL' 'PerlArtistic') @@ -14,10 +15,10 @@ url="http://www.perl.org" groups=('base') depends=('gdbm' 'db' 'coreutils' 'glibc' 'sh') source=(http://www.cpan.org/src/5.0/perl-${pkgver}.tar.bz2 -cgi-cr-escaping.diff -perlbin.sh -perlbin.csh -provides.pl) + cgi-cr-escaping.diff + perlbin.sh + perlbin.csh + provides.pl) install=perl.install options=('makeflags' '!purge') md5sums=('2818ab01672f005a4e552a713aa27b08' @@ -36,8 +37,7 @@ build() { patch -i "$srcdir/cgi-cr-escaping.diff" -p1 - if [ "${CARCH}" = "x86_64" ]; then - # for x86_64 + if [ "${CARCH}" != "i686" ]; then arch_opts="-Dcccdlflags='-fPIC'" else # for i686 @@ -45,7 +45,7 @@ build() { fi ./Configure -des -Dusethreads -Duseshrplib -Doptimize="${CFLAGS}" \ - -Dprefix=/usr -Dinstallprefix=${pkgdir}/usr -Dvendorprefix=/usr \ + -Dprefix=/usr -Dvendorprefix=/usr \ -Dprivlib=/usr/share/perl5/core_perl \ -Darchlib=/usr/lib/perl5/core_perl \ -Dsitelib=/usr/share/perl5/site_perl \ @@ -73,14 +73,15 @@ package() { provides=(${new_provides[@]}) cd ${srcdir}/${pkgname}-${pkgver} - make install + make DESTDIR="$pkgdir" install ### Perl Settings ### # Change man page extensions for site and vendor module builds. - # Use archlinux email address instead of my own. + # Set no mail address since bug reports should go to the bug tracker + # and not someone's email. sed -e '/^man1ext=/ s/1perl/1p/' -e '/^man3ext=/ s/3perl/3pm/' \ - -e "/^cf_email=/ s/'.*'/'kevin@archlinux.org'/" \ - -e "/^perladmin=/ s/'.*'/'kevin@archlinux.org'/" \ + -e "/^cf_email=/ s/'.*'/''/" \ + -e "/^perladmin=/ s/'.*'/''/" \ -i ${pkgdir}/usr/lib/perl5/core_perl/Config_heavy.pl ### CPAN Settings ### @@ -104,8 +105,6 @@ package() { (cd ${pkgdir}/usr/bin; mv perl${pkgver} perl) (cd ${pkgdir}/usr/bin/core_perl; ln -sf c2ph pstruct; ln -sf s2p psed) - grep -Rl "${pkgdir}" ${pkgdir}/usr | \ - xargs sed -i "s^${pkgdir}^^g" # Remove all pod files *except* those under /usr/share/perl5/core_perl/pod/ # (FS#16488) |