summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2010-12-20 23:05:29 -0600
committer Robby Workman <rworkman@slackbuilds.org>2010-12-20 23:05:29 -0600
commita5efbbb18281090df26bebb0ae31bfb5c8371a62 (patch)
treea73020c32f3360d9542aaaeb56509549317ce532
parent5d835f08aa4bbc93a5c59947270d99577094eeab (diff)
downloadtemplates-a5efbbb18281090df26bebb0ae31bfb5c8371a62.tar.gz
templates-a5efbbb18281090df26bebb0ae31bfb5c8371a62.tar.xz
perl-template: fixup SRCNAM usage to (ideally) avoid confusion
-rw-r--r--perl-template.SlackBuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-template.SlackBuild b/perl-template.SlackBuild
index 6b913bd..a371cd0 100644
--- a/perl-template.SlackBuild
+++ b/perl-template.SlackBuild
@@ -34,12 +34,13 @@
#
# |-----------------------------------------------------------------| #
-SRCNAM=appname # replace with name of program
-PRGNAM=perl-$SRCNAM
+PRGNAM=perl-appname # replace "appname" with name of program
VERSION=${VERSION:-1.4.1} # replace with version of program
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} # the "_SBo" is required
+SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
+
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in