summaryrefslogtreecommitdiff
path: root/development/squirrel-sql/squirrel-sql.SlackBuild
diff options
context:
space:
mode:
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