diff options
Diffstat (limited to 'development/bashdb/bashdb.SlackBuild')
-rw-r--r-- | development/bashdb/bashdb.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/development/bashdb/bashdb.SlackBuild b/development/bashdb/bashdb.SlackBuild index 00b9fd2b11f9..7e2296117551 100644 --- a/development/bashdb/bashdb.SlackBuild +++ b/development/bashdb/bashdb.SlackBuild @@ -27,11 +27,13 @@ # readarray speeds up initial loading of large scripts. PRGNAM=bashdb -VERSION=4.0-0.4 +VERSION=4.0_0.4 ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCVER=$(printf $VERSION | tr _ -) + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -42,9 +44,9 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2 +cd $PRGNAM-$SRCVER chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -73,4 +75,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION/-/_}-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |