aboutsummaryrefslogtreecommitdiff
path: root/development/casperjs/casperjs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/casperjs/casperjs.SlackBuild')
-rw-r--r--development/casperjs/casperjs.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/development/casperjs/casperjs.SlackBuild b/development/casperjs/casperjs.SlackBuild
index 12139aff359f6..3f9614b0e9d7c 100644
--- a/development/casperjs/casperjs.SlackBuild
+++ b/development/casperjs/casperjs.SlackBuild
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=casperjs
-VERSION=${VERSION:-1.1beta3}
+SRCVERSION=${VERSION:-1.1-beta3}
+VERSION=$(echo "$SRCVERSION" | tr - _)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -52,9 +53,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf n1k0-$PRGNAM-4f105a9
-tar xvf $CWD/n1k0-$PRGNAM-1.1-beta3-0-g4f105a9.tar.gz
-cd n1k0-$PRGNAM-4f105a9
+rm -rf $PRGNAM-$SRCVERSION
+tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
+cd $PRGNAM-$SRCVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \