newapkbuild: assume perl package if package name starts with perl-

This commit is contained in:
Natanael Copa 2011-03-17 10:51:07 +00:00
parent b581f87e85
commit 50cfdd620a
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ __EOF__
if [ -z "$buildtype" ]; then
if [ -x "$sdir"/configure ]; then
buildtype="autotools"
elif [ -r "$sdir"/Makefile.PL ]; then
elif [ -r "$sdir"/Makefile.PL ] || [ "${pn#perl-}" != "$pn" ]; then
buildtype="perl"
elif [ -r "$sdir"/waf ]; then
buildtype="waf"