diff options
author | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-12 17:38:33 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:38:33 +0200 |
commit | 1b30e9a3dc794c1345be0855f696131cd7399737 (patch) | |
tree | 2a466bbf40d5e2b2a46db2925400380757f24d9b /development/kdbg | |
parent | 660b44c04974e3a14e7aae55f2a417af90e28f59 (diff) | |
download | slackbuilds-1b30e9a3dc794c1345be0855f696131cd7399737.tar.gz |
development/kdbg: Updated for version 2.1.1
Diffstat (limited to 'development/kdbg')
-rw-r--r-- | development/kdbg/doinst.sh | 10 | ||||
-rw-r--r-- | development/kdbg/kdbg.SlackBuild | 44 | ||||
-rw-r--r-- | development/kdbg/kdbg.info | 12 |
3 files changed, 53 insertions, 13 deletions
diff --git a/development/kdbg/doinst.sh b/development/kdbg/doinst.sh new file mode 100644 index 0000000000..1f8ff67ded --- /dev/null +++ b/development/kdbg/doinst.sh @@ -0,0 +1,10 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/development/kdbg/kdbg.SlackBuild b/development/kdbg/kdbg.SlackBuild index ffeb97a3c9..09bc9b9544 100644 --- a/development/kdbg/kdbg.SlackBuild +++ b/development/kdbg/kdbg.SlackBuild @@ -3,14 +3,34 @@ # Slackware build script for KDbg # Written by Aleksandar B. Samardzic (<asamardzic@matf.bg.ac.yu>) - -set -e +# Copyright 2009 Michiel van Wessem, Manchester, United Kingdom +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=kdbg -VERSION=2.1.0 +VERSION=${VERSION:-2.1.1} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -26,10 +46,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find . \ + \( -perm 777 -o -perm 775 -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 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -37,13 +61,18 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -52,6 +81,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/development/kdbg/kdbg.info b/development/kdbg/kdbg.info index 789a100cc8..45593801f5 100644 --- a/development/kdbg/kdbg.info +++ b/development/kdbg/kdbg.info @@ -1,8 +1,8 @@ PRGNAM="kdbg" -VERSION="2.1.0" +VERSION="2.1.1" HOMEPAGE="http://www.kdbg.org/" -DOWNLOAD="http://downloads.sourceforge.net/kdbg/kdbg-2.1.0.tar.gz" -MD5SUM="dbac8bbc9f0182be6a272201b342fafc" -MAINTAINER="Aleksandar B. Samardzic" -EMAIL="asamardzic@matf.bg.ac.yu" -APPROVED="Michiel" +DOWNLOAD="http://downloads.sourceforge.net/kdbg/kdbg-2.1.1.tar.gz" +MD5SUM="2b7998528a68d09ff871925335092a1e" +MAINTAINER="Michiel van Wessem" +EMAIL="michiel@slackbuilds.org" +APPROVED="rworkman" |