summaryrefslogtreecommitdiffstats
path: root/multimedia/stills2dv/stills2dv.SlackBuild
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2012-03-26 22:29:53 -0500
committer Robby Workman <rworkman@slackbuilds.org>2012-03-26 22:29:53 -0500
commita12bd209de509a61eaec6030bee5d9b36249e5e0 (patch)
tree7712edb21e35288405999ece3dec3b0e4b47c8c6 /multimedia/stills2dv/stills2dv.SlackBuild
parentbc505523e6d737484521cc99049137330e9f4347 (diff)
downloadslackbuilds-a12bd209de509a61eaec6030bee5d9b36249e5e0.tar.gz
slackbuilds-a12bd209de509a61eaec6030bee5d9b36249e5e0.tar.xz
multimedia/stills2dv: Fixed VERSION (tr - _) and DOWNLOAD
Thanks to B. Watson for the report wrt VERSION strings Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/stills2dv/stills2dv.SlackBuild')
-rw-r--r--multimedia/stills2dv/stills2dv.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/multimedia/stills2dv/stills2dv.SlackBuild b/multimedia/stills2dv/stills2dv.SlackBuild
index 2e83f94886..685b23a174 100644
--- a/multimedia/stills2dv/stills2dv.SlackBuild
+++ b/multimedia/stills2dv/stills2dv.SlackBuild
@@ -5,11 +5,12 @@
# This is hereby put in the public domain
PRGNAM=stills2dv
-VERSION=alpha-0.601
-VERSION2=alpha_0.601
+VERSION=alpha_0.601
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVER=$(printf $VERSION | tr _ -)
+
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -44,9 +45,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVER
+tar xvf $CWD/$PRGNAM-$SRCVER.tgz
+cd $PRGNAM-$SRCVER
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -67,13 +68,13 @@ cp -a Makefile README.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p $PKG/usr/share/$PRGNAM-$VERSION
-cp -a exampleworkfile.s2d $PKG/usr/share/$PRGNAM-$VERSION
-cp -ar example_data_files $PKG/usr/share/$PRGNAM-$VERSION
-rm -rf $PKG/usr/share/$PRGNAM-$VERSION/example_data_files/tmp
+mkdir -p $PKG/usr/share/$PRGNAM-$SRCVER
+cp -a exampleworkfile.s2d $PKG/usr/share/$PRGNAM-$SRCVER
+cp -ar example_data_files $PKG/usr/share/$PRGNAM-$SRCVER
+rm -rf $PKG/usr/share/$PRGNAM-$SRCVER/example_data_files/tmp
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION2-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}