build-style/perl-ModuleBuild.sh: add generic do_check function.

Closes #9408.
This commit is contained in:
maxice8 2017-11-21 06:35:27 -02:00 committed by Enno Boland
parent 957072a021
commit 9eea97221e
1 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,13 @@ do_build() {
LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./Build ${make_build_args}
}
do_check() {
if [ ! -x ./Build ]; then
msg_error "$pkgver: cannot find ./Build script!\n"
fi
./Build test
}
do_install() {
if [ ! -x ./Build ]; then
msg_error "$pkgver: cannot find ./Build script!\n"