aboutsummaryrefslogtreecommitdiff
path: root/python/kallithea-frontend
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2023-03-08 20:30:27 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-03-12 08:48:11 +0700
commite69ffb04d7dbce46f4b5a79be5b6a048d077578d (patch)
tree56fe883cbc6b3a52ec096cb6208717c629ddad43 /python/kallithea-frontend
parent92610931efc193d0e3f4dd4e0cefc0bef5f3aa20 (diff)
python/kallithea-frontend: Fix BUILD usage.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/kallithea-frontend')
-rw-r--r--python/kallithea-frontend/kallithea-frontend.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/kallithea-frontend/kallithea-frontend.SlackBuild b/python/kallithea-frontend/kallithea-frontend.SlackBuild
index e134297cc615..5881944381d7 100644
--- a/python/kallithea-frontend/kallithea-frontend.SlackBuild
+++ b/python/kallithea-frontend/kallithea-frontend.SlackBuild
@@ -24,6 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=kallithea-frontend
VERSION=${VERSION:-0.7.0}
+SRCVERSION=${SRCVERSION:-$VERSION-2}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -58,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION-$BUILD $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-$BUILD.tar.xz || tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
-cd $PRGNAM-$VERSION-$BUILD || cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVERSION $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.xz || tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$SRCVERSION || cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \