aboutsummaryrefslogtreecommitdiff
path: root/system/B-em
diff options
context:
space:
mode:
authorAntonio Leal <antonioleal@yahoo.com>2023-10-09 19:42:46 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-10-09 19:42:46 +0700
commitedb853983040b938a248d567d9603b0852c82c65 (patch)
tree848e024ec1d776813f5ff3850c3d6437f9a2e819 /system/B-em
parent8fe46b7f8d2f9bf8d1a433c8bbd4fec349a21030 (diff)
system/B-em: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/B-em')
-rw-r--r--system/B-em/B-em.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/system/B-em/B-em.SlackBuild b/system/B-em/B-em.SlackBuild
index 108724e7f0f5..2da6362b238c 100644
--- a/system/B-em/B-em.SlackBuild
+++ b/system/B-em/B-em.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=B-em
VERSION=${VERSION:-608eb15}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
COMMIT=${COMMIT:-608eb15ad89f8003736f2b2dbc310759e9ab72c0}
@@ -68,8 +68,15 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
+if [ -f "$CWD/B-em-$COMMIT.tar.gz" ]; then
+ mv $CWD/B-em-$COMMIT.tar.gz $CWD/b-em-$COMMIT.tar.gz
+fi
tar xvfz $CWD/b-em-$COMMIT.tar.gz
-mv b-em-$COMMIT $PRGNAM-$VERSION
+if [ -d "B-em-$COMMIT" ]; then
+ mv B-em-$COMMIT $PRGNAM-$VERSION
+else
+ mv b-em-$COMMIT $PRGNAM-$VERSION
+fi
cd $PRGNAM-$VERSION
chown -R root:root .