summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2010-06-21 03:04:37 -0500
committer Robby Workman <rworkman@slackbuilds.org>2010-06-21 03:04:37 -0500
commite914440e0a2f6f2dcab0affb9c4eee425ce67e2c (patch)
tree6a4a9b5365e657e3becee6daf1dc40fe4dd9e17b
parent6f5c3aaee7279b07279389898d02a20f8bfa363a (diff)
downloadtemplates-e914440e0a2f6f2dcab0affb9c4eee425ce67e2c.tar.gz
templates-e914440e0a2f6f2dcab0affb9c4eee425ce67e2c.tar.xz
perl-template.SlackBuild: Noted BUILD.PL for installation
Thanks to V'yacheslav Stetskevych for the tip.
-rw-r--r--perl-template.SlackBuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/perl-template.SlackBuild b/perl-template.SlackBuild
index 52b92f5..33da21b 100644
--- a/perl-template.SlackBuild
+++ b/perl-template.SlackBuild
@@ -85,16 +85,26 @@ find . \
-exec chmod 644 {} \;
# Your application may need different flags; these are provided as examples
+# There seem to be two different methods for building perl apps:
+
+# Build method #1
perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
INSTALLVENDORMAN3DIR=/usr/man/man3
-
-# Compile the application, test, and install it into the $PKG directory
make
make test
make install DESTDIR=$PKG
+# Build method #2
+perl Build.PL \
+ prefix=/usr \
+ installdirs=vendor \
+ destdir=$PKG
+./Build
+./Build test
+./Build install
+
# Strip binaries and libraries -
# If this is not needed,remove it from the script.
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \