aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-03-26 22:29:53 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-03-26 22:29:53 -0500
commita12bd209de509a61eaec6030bee5d9b36249e5e0 (patch)
tree7712edb21e35288405999ece3dec3b0e4b47c8c6
parentbc505523e6d737484521cc99049137330e9f4347 (diff)
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>
-rw-r--r--multimedia/stills2dv/stills2dv.SlackBuild21
-rw-r--r--multimedia/stills2dv/stills2dv.info4
2 files changed, 13 insertions, 12 deletions
diff --git a/multimedia/stills2dv/stills2dv.SlackBuild b/multimedia/stills2dv/stills2dv.SlackBuild
index 2e83f9488636..685b23a1746d 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}
diff --git a/multimedia/stills2dv/stills2dv.info b/multimedia/stills2dv/stills2dv.info
index e67a8bc095f0..177687d75f44 100644
--- a/multimedia/stills2dv/stills2dv.info
+++ b/multimedia/stills2dv/stills2dv.info
@@ -1,7 +1,7 @@
PRGNAM="stills2dv"
-VERSION="alpha-0.601"
+VERSION="alpha_0.601"
HOMEPAGE="http://www.deniscarl.com/stills2dv/"
-DOWNLOAD="http://sourceforge.net/projects/stills2dv/files/stills2dv/stills2dv-alpha-0.601.tgz/download"
+DOWNLOAD="http://downloads.sourceforge.net/stills2dv/stills2dv-alpha-0.601.tgz"
MD5SUM="8ed69f48d5af651aa70940e64b39c854"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""