summaryrefslogtreecommitdiff
path: root/development/check/check.SlackBuild
diff options
context:
space:
mode:
authorRoberto Neri <rneri@libero.it>2010-05-11 19:44:13 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:44:13 +0200
commitf4b8bea21320d956124ececc36ffde9835c2b0e1 (patch)
tree9f6e63b01cc01c9610aeffaf798ee7f2e3c37ef3 /development/check/check.SlackBuild
parent268a918e9401cd38ae74fda99ded9405035e477a (diff)
downloadslackbuilds-f4b8bea21320d956124ececc36ffde9835c2b0e1.tar.gz
development/check: Updated for version 0.9.5
Diffstat (limited to 'development/check/check.SlackBuild')
-rw-r--r--development/check/check.SlackBuild42
1 files changed, 30 insertions, 12 deletions
diff --git a/development/check/check.SlackBuild b/development/check/check.SlackBuild
index 2fca00c7b6..fa4d692b00 100644
--- a/development/check/check.SlackBuild
+++ b/development/check/check.SlackBuild
@@ -22,14 +22,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by the SlackBuilds.org project
+# Modified by Roberto Neri <rneri@libero.it> to
+# - upgrade to version 0.9.5 and miscellaneous script cleanup
+# Modified by the SlackBuilds.org project 20071002 -RW
+
+# Exit on most errors
+set -e
PRGNAM=check
-VERSION=0.9.3
+VERSION=0.9.5
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-check
OUTPUT=${OUTPUT:-/tmp}
@@ -42,27 +47,40 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvfz $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvfz $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- || exit 1
+ --prefix=/usr
+
+make
+make install DESTDIR=$PKG
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+# Strip binaries and libraries
+( 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
+)
# No man page is provided
-# Move docs directory from /usr/share/ to /usr/doc
-mv $PKG/usr/share/doc $PKG/usr/doc
+# Compress info pages and remove /usr/info/dir
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
+# Move docs directory from /usr/share/doc/$PRGNAM to /usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc
+mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
+rm -fr $PKG/usr/share/doc
cp -a AUTHORS INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
+# Include the SlackBuild script in the documentation directory
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc