aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-DateTime/perl-DateTime.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-DateTime/perl-DateTime.SlackBuild')
-rw-r--r--perl/perl-DateTime/perl-DateTime.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/perl/perl-DateTime/perl-DateTime.SlackBuild b/perl/perl-DateTime/perl-DateTime.SlackBuild
index 662e1e380b88d..c04f4897246a3 100644
--- a/perl/perl-DateTime/perl-DateTime.SlackBuild
+++ b/perl/perl-DateTime/perl-DateTime.SlackBuild
@@ -1,12 +1,11 @@
#!/bin/sh
# Slackware build script for perl-DateTime
-
# Written by David Somero <dsomero@hotmail.com>
# Derived from Slackware's Slackbuilds.
-#
+
# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, Minnesota, USA
-# Copyright 2010 David Somero (dsomero@hotmail.com) Athens, TN, USA
+# Copyright 2011 David Somero (dsomero@hotmail.com) Athens, TN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,12 +25,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-SRCNAM=DateTime
-PRGNAM=perl-$SRCNAM
-VERSION=${VERSION:-0.61}
+PRGNAM=perl-DateTime
+VERSION=${VERSION:-0.70}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=DateTime
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -91,6 +91,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+
find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION