diff options
Diffstat (limited to 'development/sqlitebrowser/sqlitebrowser.SlackBuild')
-rw-r--r-- | development/sqlitebrowser/sqlitebrowser.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/development/sqlitebrowser/sqlitebrowser.SlackBuild b/development/sqlitebrowser/sqlitebrowser.SlackBuild index e2f13ead1470e..38df227827a71 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 |