diff options
Diffstat (limited to 'core/perl/PKGBUILD')
-rw-r--r-- | core/perl/PKGBUILD | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/core/perl/PKGBUILD b/core/perl/PKGBUILD index e033b61c4..e655d49a1 100644 --- a/core/perl/PKGBUILD +++ b/core/perl/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 139103 2011-09-29 12:44:13Z angvp $ +# $Id: PKGBUILD 143804 2011-11-29 13:33:00Z stephane $ # Maintainer: Angel Velasquez <angvp@archlinux.org> # Contributor: kevin <kevin.archlinux.org> # Contributor: judd <jvinet.zeroflux.org> # Contributor: francois <francois.archlinux.org> pkgname=perl pkgver=5.14.2 -pkgrel=2.1 +pkgrel=4 pkgdesc="A highly capable, feature-rich programming language" arch=(i686 x86_64 'mips64el') license=('GPL' 'PerlArtistic') @@ -36,6 +36,10 @@ build() { # for i686 arch_opts="" fi + + # remove rpath FS#27173 + sed -i 's#xxx="-Wl,-rpath,$shrpdir"##' Configure + ./Configure -des -Dusethreads -Duseshrplib -Doptimize="${CFLAGS}" \ -Dprefix=/usr -Dinstallprefix=${pkgdir}/usr -Dvendorprefix=/usr \ -Dprivlib=/usr/share/perl5/core_perl \ @@ -53,6 +57,12 @@ build() { patch -Np1 -i $srcdir/0001-Append-CFLAGS-and-LDFLAGS-to-their-Config.pm-counter.patch make } + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make test +} + package() { # hack to work around makepkg running the subshell in check_sanity() new_provides=($(cd "$srcdir/perl-$pkgver"; LD_PRELOAD=./libperl.so ./perl -Ilib "$srcdir/provides.pl" .)) |