diff options
-rw-r--r-- | apkbuild-cpan.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in index 54dbfd4..8160042 100644 --- a/apkbuild-cpan.in +++ b/apkbuild-cpan.in @@ -194,7 +194,7 @@ EOF build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - ./Build && ./Build test + ./Build } EOF $package_func = <<'EOF'; @@ -204,6 +204,12 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } EOF + $check_func = <<'EOF'; +check() { + cd "$builddir" + ./Build test +} +EOF } else { $prepare_func = <<'EOF'; prepare() { |