summaryrefslogtreecommitdiffstats
path: root/development/squirrel-sql/squirrel-sql.SlackBuild
diff options
context:
space:
mode:
author Dario Nicodemi2011-10-23 22:55:28 +0200
committer Niels Horn2011-10-23 22:55:28 +0200
commite9566a0756f72dd61b0a6814f63b146a3466e11f (patch)
treef8ee5702203675a4b77d18690d67329b6fb27f48 /development/squirrel-sql/squirrel-sql.SlackBuild
parent3b1a33551c6717ae80b4635f5654697bc97442b4 (diff)
downloadslackbuilds-e9566a0756f72dd61b0a6814f63b146a3466e11f.tar.gz
development/squirrel-sql: Updated for version 3.2.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development/squirrel-sql/squirrel-sql.SlackBuild')
-rw-r--r--development/squirrel-sql/squirrel-sql.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/development/squirrel-sql/squirrel-sql.SlackBuild b/development/squirrel-sql/squirrel-sql.SlackBuild
index b6e9965b62..3616f9093a 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.1}
+VERSION=${VERSION:-3.2.1}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -15,13 +15,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION-optional
tar xvf $CWD/$PRGNAM-$VERSION-optional.tar.gz
+mv $PRGNAM-$VERSION-optional $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -32,7 +33,7 @@ find . \
mkdir -p $PKG/opt/$PRGNAM
cp -r . $PKG/opt/$PRGNAM
-rm -rf $PKG/opt/$PRGNAM/{Uninstaller,update,addpath.bat}
+rm -rf $PKG/opt/$PRGNAM/{Uninstaller,update,addpath.bat,squirrel-sql.bat}
mkdir -p $PKG/usr/bin
cat <<EOF > $PKG/usr/bin/squirrel-sql
#!/bin/sh
@@ -45,8 +46,12 @@ mkdir -p $PKG/usr/share/{applications,pixmaps}
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+# 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 -
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install