From 50cfdd620a2411e4a7855208f7c3fc85893e41cd Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 17 Mar 2011 10:51:07 +0000
Subject: [PATCH] newapkbuild: assume perl package if package name starts with
 perl-

---
 newapkbuild.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newapkbuild.in b/newapkbuild.in
index 0047ab2bd81d..d3154927fb43 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"
-- 
GitLab