summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-07-11 08:57:29 -0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 15:02:18 +0300
commitba1d1a3d613599d8f2d12ffd042ba337f5066ccc (patch)
treef3027c091b7554cb2001a51f4eea20a49eaca717
parentcf18bf6ed98715be16e9c335c8113b208ca29776 (diff)
downloadabuild-ba1d1a3d613599d8f2d12ffd042ba337f5066ccc.tar.gz
abuild-ba1d1a3d613599d8f2d12ffd042ba337f5066ccc.tar.bz2
abuild-ba1d1a3d613599d8f2d12ffd042ba337f5066ccc.tar.xz
abuild-ba1d1a3d613599d8f2d12ffd042ba337f5066ccc.zip
apkbuild-cpan: modernize
-rw-r--r--apkbuild-cpan.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index 688df6e..b638149 100644
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -45,13 +45,13 @@ source="[% source %]"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
if [ -e Build.PL ]; then
- perl Build.PL installdirs=vendor || return 1
+ perl Build.PL installdirs=vendor
else
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
fi
}
@@ -183,11 +183,11 @@ sub update_functions {
if (-e "$metaprefix/Build.PL" ) {
$prepare_func = <<'EOF';
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- perl Build.PL installdirs=vendor || return 1
+ perl Build.PL installdirs=vendor
}
EOF
$build_func = <<'EOF';
@@ -200,14 +200,14 @@ EOF
$package_func = <<'EOF';
package() {
cd "$builddir"
- ./Build install destdir="$pkgdir" || return 1
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
EOF
} else {
$prepare_func = <<'EOF';
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@@ -224,7 +224,7 @@ EOF
$package_func = <<'EOF';
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
EOF