summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apkbuild-cpan.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index 2af8596..020abd3 100644
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -41,6 +41,8 @@ source="[% source %]"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
+ default_prepare || return 1
+
cd "$builddir"
if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor || return 1
@@ -166,6 +168,8 @@ sub update_functions {
if (-e "$metaprefix/Build.PL" ) {
$prepare_func = <<'EOF';
prepare() {
+ default_prepare || return 1
+
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL installdirs=vendor || return 1
@@ -188,6 +192,8 @@ EOF
} else {
$prepare_func = <<'EOF';
prepare() {
+ default_prepare || return 1
+
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor