diff options
author | Dhaby Xiloj <slack.dhabyx@gmail.com> | 2013-12-05 07:24:31 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2013-12-05 07:24:31 +0700 |
commit | 59715b3848ab4773c73e96aa1f7ea6aeea44166b (patch) | |
tree | a3c2f9571cf483c619f38a2f9c89af5e908cad40 /development/sqliteman/sqliteman.SlackBuild | |
parent | cae6e34a5ce5fbe8420372737d35cd8e4fc41c29 (diff) |
development/sqliteman: Script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/sqliteman/sqliteman.SlackBuild')
-rw-r--r-- | development/sqliteman/sqliteman.SlackBuild | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/development/sqliteman/sqliteman.SlackBuild b/development/sqliteman/sqliteman.SlackBuild index 663bccb4f19f6..9f3903f30b6ee 100644 --- a/development/sqliteman/sqliteman.SlackBuild +++ b/development/sqliteman/sqliteman.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for sqliteman -# Copyright (c) 2008, Dhaby Xiloj <slack.dhabyx@gmail.com> +# Copyright (c) 2008-2013, Dhaby Xiloj <slack.dhabyx@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -22,8 +22,8 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=sqliteman -VERSION=1.2.2 -BUILD=${BUILD:-1} +VERSION=${VERSION:-1.2.2} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -63,10 +63,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$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 {} \; + \( -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 {} \; cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ @@ -82,7 +82,12 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # /usr/share/icons is for themed/scaled icons -mv $PKG/usr/share/icons $PKG/usr/share/pixmaps +mv $PKG/usr/share/icons/hicolor $PKG/usr/share/pixmaps +rm -rf $PKG/usr/share/icons + +# Adding Categories entry for .desktop file +sed -e "10a\Categories=Database;Development;" sqliteman.desktop \ + > $PKG/usr/share/applications/sqliteman.desktop mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS README COPYING VERSION $PKG/usr/doc/$PRGNAM-$VERSION |