summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChess Griffin <chess@chessgriffin.com>2010-05-12 17:45:20 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:45:20 +0200
commita09194aa082c5d7e9599de6b3c4d24a79a09c0d4 (patch)
tree55fd2f6b5d6da8e3a486b4a9275944cef839dc26
parent027619cb6e799b12ce526ab716c9aa504a49f8e8 (diff)
downloadslackbuilds-a09194aa082c5d7e9599de6b3c4d24a79a09c0d4.tar.gz
system/graveman: Updated for version 0.3.12.5
-rw-r--r--system/graveman/doinst.sh3
-rw-r--r--system/graveman/graveman.SlackBuild43
-rw-r--r--system/graveman/graveman.info2
3 files changed, 40 insertions, 8 deletions
diff --git a/system/graveman/doinst.sh b/system/graveman/doinst.sh
index 033f010d40..4e8ba7071d 100644
--- a/system/graveman/doinst.sh
+++ b/system/graveman/doinst.sh
@@ -1,3 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
- /usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
diff --git a/system/graveman/graveman.SlackBuild b/system/graveman/graveman.SlackBuild
index 98f34e419b..208c5fa472 100644
--- a/system/graveman/graveman.SlackBuild
+++ b/system/graveman/graveman.SlackBuild
@@ -2,7 +2,25 @@
# Slackware build script for Graveman
-# Written by Chess Griffin <chess at chessgriffin dot com>
+# Copyright 2006-2009 Chess Griffin <chess@chessgriffin.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''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 AUTHOR 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.
# Note: the developer's source code version is numbered
# with a dash at the end, e.g. 0.3.12-5, which can throw
@@ -18,7 +36,7 @@ PRGNAM=graveman
VERSION=0.3.12.5 # this is local version
SRCVER=0.3.12-5 # this is the developer's source version
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -28,10 +46,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@@ -41,25 +62,35 @@ rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || exit 1
cd $PRGNAM-$SRCVER || exit 1
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" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
-if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
-fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS README* THANKS TRANSLATE-HOWTO.fr \
diff --git a/system/graveman/graveman.info b/system/graveman/graveman.info
index 98e309fd28..71716228dd 100644
--- a/system/graveman/graveman.info
+++ b/system/graveman/graveman.info
@@ -5,4 +5,4 @@ DOWNLOAD="http://graveman.tuxfamily.org/sources/graveman-0.3.12-5.tar.gz"
MD5SUM="94183b71f345e405badcdf92ea04dfac"
MAINTAINER="Chess Griffin"
EMAIL="chess@chessgriffin.com"
-APPROVED="rworkman"
+APPROVED="dsomero"