summaryrefslogtreecommitdiff
path: root/libraries/quesoglc/quesoglc.SlackBuild
diff options
context:
space:
mode:
authorMatthew Fillpot <mfilpot@gmail.com>2010-10-17 09:47:00 -0400
committerRobby Workman <rworkman@slackbuilds.org>2010-10-17 20:16:51 -0500
commit8de073c00593ffd241cab85b600a015d1af1d6c9 (patch)
treea904b36b21896ffd25d4ec1bd6384214d42a0b4f /libraries/quesoglc/quesoglc.SlackBuild
parent2bb8d8c740f8f324599cf2357e9f7d862b0e5cf3 (diff)
downloadslackbuilds-8de073c00593ffd241cab85b600a015d1af1d6c9.tar.gz
libraries/quesoglc: Miscellaneous fixes.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/quesoglc/quesoglc.SlackBuild')
-rw-r--r--libraries/quesoglc/quesoglc.SlackBuild27
1 files changed, 24 insertions, 3 deletions
diff --git a/libraries/quesoglc/quesoglc.SlackBuild b/libraries/quesoglc/quesoglc.SlackBuild
index f2ef916c38..54aaab266d 100644
--- a/libraries/quesoglc/quesoglc.SlackBuild
+++ b/libraries/quesoglc/quesoglc.SlackBuild
@@ -2,7 +2,7 @@
# SlackBuild script for QuesoGLC
-# Copyright 2009 Matthew "mfillpot" Fillpot
+# Copyright 2010 Matthew "mfillpot" Fillpot
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,10 +24,19 @@
PRGNAM=quesoglc
VERSION=${VERSION:-0.7.2}
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+# Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -71,6 +80,18 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+#No man pages
+
+#No info pages
+
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL THANKS README \
$PKG/usr/doc/$PRGNAM-$VERSION