aboutsummaryrefslogtreecommitdiff
path: root/development/squirrel-sql/squirrel-sql.SlackBuild
diff options
context:
space:
mode:
authorDario Nicodemi <dario.sbo@gmail.com>2016-08-17 23:36:00 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-20 07:49:48 +0700
commiteb41f4e708c7e9c6cc8eb9a147d42f7eb69d9d0f (patch)
treeb593e9883c42e097e6fdd5b458f74dd7017cc9be /development/squirrel-sql/squirrel-sql.SlackBuild
parentac23335a6a657ba2391b028bcb394e97d92dc76c (diff)
development/squirrel-sql: Updated for version 3.7.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/squirrel-sql/squirrel-sql.SlackBuild')
-rw-r--r--development/squirrel-sql/squirrel-sql.SlackBuild17
1 files changed, 7 insertions, 10 deletions
diff --git a/development/squirrel-sql/squirrel-sql.SlackBuild b/development/squirrel-sql/squirrel-sql.SlackBuild
index 94a3836e4d416..a5d6912fc3c82 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