summaryrefslogtreecommitdiff
path: root/testing/perl/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-28 23:14:56 +0000
committerroot <root@rshg054.dnsready.net>2011-11-28 23:14:56 +0000
commit83c3c42a38bda36bdc56d594318958bc4cfd9b32 (patch)
tree7f61d219016bca3c90771ae5681a2ceeb149ed22 /testing/perl/PKGBUILD
parent495674534c45d86d3ad9149cdba75ca0bbbe1a0e (diff)
Mon Nov 28 23:14:56 UTC 2011
Diffstat (limited to 'testing/perl/PKGBUILD')
-rw-r--r--testing/perl/PKGBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/testing/perl/PKGBUILD b/testing/perl/PKGBUILD
index 496ca3fdd..15aac3276 100644
--- a/testing/perl/PKGBUILD
+++ b/testing/perl/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 143472 2011-11-24 17:03:10Z stephane $
+# $Id: PKGBUILD 143604 2011-11-27 10:03:52Z bluewind $
# 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=3
+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" .))