diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2013-07-05 01:56:15 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2013-07-07 09:11:57 -0300 |
commit | 0135bf83fbcfaab33962bdc404b8850202c14102 (patch) | |
tree | 2ec949a7a9a93ad9da762a75cfffa09c4f13532f /development/nexus/nexus.SlackBuild | |
parent | ec918c74b128613feb0d335fa1e5c8354674e62c (diff) |
development/nexus: Fix VERSION string to not make a broken package
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/nexus/nexus.SlackBuild')
-rw-r--r-- | development/nexus/nexus.SlackBuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/development/nexus/nexus.SlackBuild b/development/nexus/nexus.SlackBuild index 44687b4b1bf6b..80379f409a6c2 100644 --- a/development/nexus/nexus.SlackBuild +++ b/development/nexus/nexus.SlackBuild @@ -23,10 +23,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=nexus -VERSION=${VERSION:-2.5.0-04} +VERSION=${VERSION:-2.5.0_04} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCVERSION=$(echo $VERSION | tr _ -) + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -67,9 +69,9 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-bundle.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVERSION +tar xvf $CWD/$PRGNAM-$SRCVERSION-bundle.tar.gz +cd $PRGNAM-$SRCVERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ |