Commit 542617a6 authored by Jakub Jirutka's avatar Jakub Jirutka Committed by Natanael Copa

apkbuild-cpan: invoke default_prepare in prepare() function

parent cca53fba
...@@ -41,6 +41,8 @@ source="[% source %]" ...@@ -41,6 +41,8 @@ source="[% source %]"
builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare || return 1
cd "$builddir" cd "$builddir"
if [ -e Build.PL ]; then if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor || return 1 perl Build.PL installdirs=vendor || return 1
...@@ -166,6 +168,8 @@ sub update_functions { ...@@ -166,6 +168,8 @@ sub update_functions {
if (-e "$metaprefix/Build.PL" ) { if (-e "$metaprefix/Build.PL" ) {
$prepare_func = <<'EOF'; $prepare_func = <<'EOF';
prepare() { prepare() {
default_prepare || return 1
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL installdirs=vendor || return 1 perl Build.PL installdirs=vendor || return 1
...@@ -188,6 +192,8 @@ EOF ...@@ -188,6 +192,8 @@ EOF
} else { } else {
$prepare_func = <<'EOF'; $prepare_func = <<'EOF';
prepare() { prepare() {
default_prepare || return 1
cd "$builddir" cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment