diff options
Diffstat (limited to 'development/squirrel-sql/squirrel-sql.SlackBuild')
-rw-r--r-- | development/squirrel-sql/squirrel-sql.SlackBuild | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/development/squirrel-sql/squirrel-sql.SlackBuild b/development/squirrel-sql/squirrel-sql.SlackBuild index 94a3836e4d41..a5d6912fc3c8 100644 --- a/development/squirrel-sql/squirrel-sql.SlackBuild +++ b/development/squirrel-sql/squirrel-sql.SlackBuild @@ -5,7 +5,7 @@ # Written by Dario Nicodemi dario.sbo@gmail.com PRGNAM=squirrel-sql -VERSION=${VERSION:-3.5.0} +VERSION=${VERSION:-3.7.1} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -17,12 +17,13 @@ OUTPUT=${OUTPUT:-/tmp} set -e +DISTNAME=squirrelsql rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION-optional -tar xvf $CWD/$PRGNAM-$VERSION-optional.tar.gz -mv $PRGNAM-$VERSION-optional $PRGNAM-$VERSION +rm -rf $PRGNAM-$VERSION $DISTNAME-$VERSION-optional +unzip $CWD/$DISTNAME-$VERSION-optional.zip +mv $DISTNAME-$VERSION-optional $PRGNAM-$VERSION cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -33,7 +34,7 @@ find -L . \ mkdir -p $PKG/opt/$PRGNAM cp -r . $PKG/opt/$PRGNAM -rm -rf $PKG/opt/$PRGNAM/{Uninstaller,update,addpath.bat,squirrel-sql.bat} +rm -rf $PKG/opt/$PRGNAM/{addpath.bat,squirrel-sql.bat} mkdir -p $PKG/usr/bin cat <<EOF > $PKG/usr/bin/squirrel-sql #!/bin/sh @@ -47,11 +48,7 @@ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png # Move doc to standard location + create symlink -mkdir -p $PKG/usr/doc -mv $PKG/opt/$PRGNAM/doc $PKG/usr/doc/$PRGNAM-$VERSION -cd $PKG/opt/$PRGNAM - ln -s ../../usr/doc/$PRGNAM-$VERSION doc -cd - +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |