summaryrefslogtreecommitdiffstats
path: root/main/perl
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-08-12 13:08:12 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-08-12 13:08:12 +0000
commitf5a94aaaf629a56e1f79894f69be4dc9bd27d9a9 (patch)
tree2ea6d4e57e891ef1b79348eaa50d93f38c7d806e /main/perl
parent74fb602d726d8508fe433ef43c27db1e2540ae16 (diff)
downloadaports-f5a94aaaf629a56e1f79894f69be4dc9bd27d9a9.tar.bz2
aports-f5a94aaaf629a56e1f79894f69be4dc9bd27d9a9.tar.xz
main/perl: build fix (-lnsl removed)
Diffstat (limited to 'main/perl')
-rw-r--r--main/perl/APKBUILD13
1 files changed, 11 insertions, 2 deletions
diff --git a/main/perl/APKBUILD b/main/perl/APKBUILD
index 42643135c..e1172bd7b 100644
--- a/main/perl/APKBUILD
+++ b/main/perl/APKBUILD
@@ -1,7 +1,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+# Contributor: Leonardo Arena <rnalrd@gmail.com>
pkgname=perl
pkgver=5.10.1
-pkgrel=1
+pkgrel=2
pkgdesc="Larry Wall's Practical Extraction and Report Language"
url=http://www.perl.org
license="Artistic GPL-2"
@@ -9,8 +10,16 @@ source=http://www.perl.com/CPAN/src/perl-${pkgver}.tar.gz
depends=
subpackages="$pkgname-dev $pkgname-doc miniperl"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd $_builddir
+ sed -i -e 's/less -R/less/g' ./Configure
+ sed -i -e 's/libswanted="\(.*\) nsl\(.*\)"/libswanted="\1\2"/g' ./Configure
+}
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd $_builddir
./Configure -des \
-Dcccdlflags='-fPIC' \
-Dcccdlflags='-fPIC' \