summaryrefslogtreecommitdiff
path: root/core/perl
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-30 23:15:09 +0000
committerroot <root@rshg054.dnsready.net>2011-11-30 23:15:09 +0000
commitfd115d7057eb8243df6edfaf1ed440d6f3e70692 (patch)
tree0a32bcfa47c11eb3e1127b1de196fb6385ed8723 /core/perl
parent946f0c9fe48dfb648a8a0be065e92f237ce210fd (diff)
Wed Nov 30 23:15:09 UTC 2011
Diffstat (limited to 'core/perl')
-rw-r--r--core/perl/PKGBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/perl/PKGBUILD b/core/perl/PKGBUILD
index 46ca72ef2..91a2e33d5 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
+pkgrel=4
pkgdesc="A highly capable, feature-rich programming language"
arch=(i686 x86_64)
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" .))