From e914440e0a2f6f2dcab0affb9c4eee425ce67e2c Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Mon, 21 Jun 2010 03:04:37 -0500 Subject: perl-template.SlackBuild: Noted BUILD.PL for installation Thanks to V'yacheslav Stetskevych for the tip. --- perl-template.SlackBuild | 14 ++++++++++++-- 1 file 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 \ -- cgit v1.2.3