diff options
author | Chris Novakovic <chris@chrisn.me.uk> | 2014-12-12 00:09:22 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2014-12-12 00:10:25 -0600 |
commit | e9e7c963c00d9902561075332e17392f47c1cda2 (patch) | |
tree | ab17e26ddbe5a8724adb98033cc8e4b290d6b222 | |
parent | 87c8304175893f276b16c2bde5588b00f1d5ec07 (diff) |
perl-template.SlackBuild: Several fixes
- INSTALLVENDORMAN1DIR=/usr/man/man1 is now set during build method #1,
so man pages in section 1 are installed in a location supported by
Slackware
- The options "prefix" and "installdirs" that are passed to Build.PL in
build method #2 are now correctly recognised
- "destdir" is now passed to `./Build install` instead of Build.PL in
build method #2, as recommended by the Module::Build::Cookbook
documentation
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | perl-template.SlackBuild | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-template.SlackBuild b/perl-template.SlackBuild index 53adb0d..6787cda 100644 --- a/perl-template.SlackBuild +++ b/perl-template.SlackBuild @@ -106,6 +106,7 @@ find -L . \ perl Makefile.PL \ PREFIX=/usr \ INSTALLDIRS=vendor \ + INSTALLVENDORMAN1DIR=/usr/man/man1 \ INSTALLVENDORMAN3DIR=/usr/man/man3 make make test @@ -113,12 +114,12 @@ make install DESTDIR=$PKG # Build method #2 perl Build.PL \ - prefix=/usr \ - installdirs=vendor \ - destdir=$PKG + prefix /usr \ + installdirs vendor ./Build ./Build test ./Build install \ + --destdir $PKG \ --install_path bindoc=/usr/man/man1 \ --install_path libdoc=/usr/man/man3 |