apkbuild-cpan: invoke default_prepare in prepare() function

This commit is contained in:
Jakub Jirutka 2016-06-12 16:05:05 +02:00 committed by Natanael Copa
parent cca53fba63
commit 542617a6b1

View File

@ -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