diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-07-11 02:50:46 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-07-11 02:50:46 -0500 |
commit | 196971b1221937c40547550e68960957beda02d1 (patch) | |
tree | 33ce601f2f4bb6beaa8ff912ad468006e5a5220d /development/Coin/Coin.SlackBuild | |
parent | cd49f5b46ffc14864c33cb81e3746f4470756cff (diff) | |
download | slackbuilds-196971b1221937c40547550e68960957beda02d1.tar.gz |
development/Coin: Miscellaneous cleanups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/Coin/Coin.SlackBuild')
-rw-r--r-- | development/Coin/Coin.SlackBuild | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/development/Coin/Coin.SlackBuild b/development/Coin/Coin.SlackBuild index 37d865b28c..dbfdf4e791 100644 --- a/development/Coin/Coin.SlackBuild +++ b/development/Coin/Coin.SlackBuild @@ -4,14 +4,21 @@ # Originally written by Aleksandar Samardzic <asamardzic@gmail.com> # Versions >= 3.1.3 maintained by Niels Horn <niels.horn@gmail.com> -# Revision date: 2010/04/13 +# Revision date: 2010/07/10 PRGNAM=Coin VERSION=${VERSION:-3.1.3} -ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -33,6 +40,10 @@ elif [ "$ARCH" = "arm" ]; then SLKCFLAGS="-O2 -march=armv4t" LIBDIRSUFFIX="" ARCHQUADLET="-gnueabi" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" + ARCHQUADLET="" fi set -e @@ -64,13 +75,13 @@ 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 -( 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 -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog FAQ* INSTALL* LICENSE.GPL NEWS README* RELNOTES THANKS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog FAQ* INSTALL* LICENSE.GPL NEWS RE* THANKS \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |