summaryrefslogtreecommitdiff
path: root/perl/perl-TimeDate/perl-TimeDate.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-TimeDate/perl-TimeDate.SlackBuild')
-rw-r--r--perl/perl-TimeDate/perl-TimeDate.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/perl/perl-TimeDate/perl-TimeDate.SlackBuild b/perl/perl-TimeDate/perl-TimeDate.SlackBuild
index c16930782d..a71cc1838e 100644
--- a/perl/perl-TimeDate/perl-TimeDate.SlackBuild
+++ b/perl/perl-TimeDate/perl-TimeDate.SlackBuild
@@ -3,13 +3,14 @@
# Slackware Package Build Script for perl modules: TimeDate
# Home Page http://search.cpan.org/dist/TimeDate/
-# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant__AT__mnspace__DOT__net)
+# Copyright (c) 2008-2013, Nishant Limbachia, Hoffman Estates, IL, USA
+# (nishant _AT_ mnspace _DOT_ net)
# All rights reserved.
-# Redistribution and use of this script, with or without modification, is
+# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
-# 1. Redistributions of script must retain the above copyright notice,
+# 1. Redistributions of script must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -26,18 +27,17 @@
#
# Modified by the SlackBuilds.org project.
-SRCNAM=TimeDate
-PRGNAM=perl-TimeDate
-VERSION=1.20
+PRGNAM="perl-TimeDate"
+VERSION=${VERSION:-2.30}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+SRCNAM="$(printf $PRGNAM | cut -f2- -d-)"
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -100,7 +100,7 @@ find $PKG -depth -type d -empty -exec rm -rf {} \;
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+)
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc