diff options
Diffstat (limited to 'source/l/raptor/raptor.SlackBuild')
-rwxr-xr-x | source/l/raptor/raptor.SlackBuild | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/source/l/raptor/raptor.SlackBuild b/source/l/raptor/raptor.SlackBuild index 386ef4c4..1c57b5d0 100755 --- a/source/l/raptor/raptor.SlackBuild +++ b/source/l/raptor/raptor.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Copyright 2007 Heinz Wiesinger <hmwiesinger@gmx.at> -# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,10 +25,19 @@ # No added terms or copyright claims -VERSION=1.4.18 -ARCH=${ARCH:-x86_64} +VERSION=${VERSION:-$(echo raptor-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-1} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + NUMJOBS=${NUMJOBS:--j6} CWD=$(pwd) @@ -44,13 +53,16 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf raptor-$VERSION -tar xvf $CWD/raptor-$VERSION.tar.bz2 || exit 1 +tar xvf $CWD/raptor-$VERSION.tar.xz || exit 1 cd raptor-$VERSION || exit 1 chown -R root:root . find . \ @@ -83,13 +95,21 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" \ mkdir -p $PKG/usr/doc/raptor-$VERSION cp -a \ - AUTHORS ChangeLog* COPYING* INSTALL* LICENSE* NEWS* \ + AUTHORS COPYING* INSTALL* LICENSE* NEWS* \ NOTICE README* RELEASE.html \ $PKG/usr/doc/raptor-$VERSION ( cd $PKG/usr/doc/raptor-$VERSION ln -s /usr/share/gtk-doc/html/raptor html ) +# If there's a ChangeLog, installing at least part of the recent history +# is useful, but don't let it get totally out of control: +if [ -r ChangeLog ]; then + DOCSDIR=$(echo $PKG/usr/doc/*-$VERSION) + cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |