summaryrefslogtreecommitdiff
path: root/development/sqlitebrowser/sqlitebrowser.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryanpcmcquen@gmail.com>2014-05-28 22:55:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-28 23:45:49 +0700
commit3640f0c78565475179957772175b7e7bf7babba6 (patch)
tree9986b554b4fd7c8e307379997cbeb6cc36785196 /development/sqlitebrowser/sqlitebrowser.SlackBuild
parent80a8c597db25126fb6eb915508e97848affd0e8a (diff)
downloadslackbuilds-3640f0c78565475179957772175b7e7bf7babba6.tar.gz
development/sqlitebrowser: Updated for version 3.1.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/sqlitebrowser/sqlitebrowser.SlackBuild')
-rw-r--r--development/sqlitebrowser/sqlitebrowser.SlackBuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/development/sqlitebrowser/sqlitebrowser.SlackBuild b/development/sqlitebrowser/sqlitebrowser.SlackBuild
index e2f13ead14..38df227827 100644
--- a/development/sqlitebrowser/sqlitebrowser.SlackBuild
+++ b/development/sqlitebrowser/sqlitebrowser.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for sqlitebrowser
# Copyright 2010, 2012 Binh Nguyen <binhvng@gmail.com>
+# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +24,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sqlitebrowser
-VERSION=${VERSION:-2.0b1}
-BUILD=${BUILD:-3}
+SRCNAM=sqlb
+VERSION=${VERSION:-3.1.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -45,29 +47,26 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf trunk
-tar xvf $CWD/${PRGNAM}_200_b1_src.tar.gz
-cd trunk/$PRGNAM
+rm -rf $PRGNAM-$SRCNAM-$VERSION
+tar xvf $CWD/${SRCNAM}-$VERSION.tar.gz
+cd $PRGNAM-$SRCNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-# Fix building with Qt 4.7
-patch -p0 < $CWD/sqlitebrowser-2.0_beta1-qt-4.7.0.patch
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
qmake
make LINK="g++ -ldl"
mkdir -p $PKG/usr/bin
-cp $PRGNAM/$PRGNAM $PKG/usr/bin/
+cp src/$PRGNAM $PKG/usr/bin/
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $PRGNAM/LICENSING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install