diff options
Diffstat (limited to 'academic/octave-forge/octave-forge.SlackBuild')
-rw-r--r-- | academic/octave-forge/octave-forge.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/academic/octave-forge/octave-forge.SlackBuild b/academic/octave-forge/octave-forge.SlackBuild index 358a0939b6..4e04989c62 100644 --- a/academic/octave-forge/octave-forge.SlackBuild +++ b/academic/octave-forge/octave-forge.SlackBuild @@ -35,10 +35,12 @@ # - No JOBS support. PRGNAM=octave-forge -VERSION=bundle-20090607 +VERSION=bundle_20090607 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCVER=$(printf $VERSION | tr _ -) + # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -75,9 +77,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -119,7 +121,7 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc ( cd $PKG - /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION |tr - _)-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} + /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} ) # Print a brief compilation report |