summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-17 10:51:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-17 10:51:07 +0000
commit50cfdd620a2411e4a7855208f7c3fc85893e41cd (patch)
treea7a70aa355ddd582f01949726b635e6c47f6a18b
parentb581f87e8530f8c2a855c3473763fbb800d9e401 (diff)
downloadabuild-50cfdd620a2411e4a7855208f7c3fc85893e41cd.tar.bz2
abuild-50cfdd620a2411e4a7855208f7c3fc85893e41cd.tar.xz
newapkbuild: assume perl package if package name starts with perl-
-rwxr-xr-xnewapkbuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/newapkbuild.in b/newapkbuild.in
index 0047ab2..d315492 100755
--- a/newapkbuild.in
+++ b/newapkbuild.in
@@ -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"