aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-03-26 22:48:31 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-03-26 22:48:31 -0500
commit8389a1055321b546f2ecab9fc15065a894d6246e (patch)
tree2f332bd96cffd1034f2799f8e0cd99e6facb8f58 /system
parent74021d65fb8117d537806acca29460105750abc4 (diff)
system/trash-cli: Fixed VERSION strings (s,-,_,g)
Thanks to B. Watson for the report. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/trash-cli/trash-cli.SlackBuild10
-rw-r--r--system/trash-cli/trash-cli.info2
2 files changed, 7 insertions, 5 deletions
diff --git a/system/trash-cli/trash-cli.SlackBuild b/system/trash-cli/trash-cli.SlackBuild
index e5fe245430e9..10713e78ad91 100644
--- a/system/trash-cli/trash-cli.SlackBuild
+++ b/system/trash-cli/trash-cli.SlackBuild
@@ -23,10 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=trash-cli
-VERSION=${VERSION:-0.11.3-r315}
+VERSION=${VERSION:-0.11.3_r315}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVER=$(printf $VERSION | tr _ -)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -59,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVER
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
+cd $PRGNAM-$SRCVER
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
diff --git a/system/trash-cli/trash-cli.info b/system/trash-cli/trash-cli.info
index fdc3a37bff56..9dc6a2e0b38d 100644
--- a/system/trash-cli/trash-cli.info
+++ b/system/trash-cli/trash-cli.info
@@ -1,5 +1,5 @@
PRGNAM="trash-cli"
-VERSION="0.11.3-r315"
+VERSION="0.11.3_r315"
HOMEPAGE="https://code.google.com/p/trash-cli/"
DOWNLOAD="http://trash-cli.googlecode.com/files/trash-cli-0.11.3-r315.tar.gz"
MD5SUM="00654c149108fc4c522b5b008e9b8468"