From 69051d5b38fa6e8866ae98ca62f96e6834442788 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Fri, 21 May 2010 01:41:23 -0500 Subject: multimedia/kino: Miscellaneous cleanups. --- multimedia/kino/kino.SlackBuild | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'multimedia/kino/kino.SlackBuild') diff --git a/multimedia/kino/kino.SlackBuild b/multimedia/kino/kino.SlackBuild index 4679bd1c73..dc514c8037 100644 --- a/multimedia/kino/kino.SlackBuild +++ b/multimedia/kino/kino.SlackBuild @@ -21,10 +21,19 @@ PRGNAM=kino VERSION=1.3.2 -ARCH=${ARCH:-i486} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +# 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 + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -39,6 +48,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi if [ "${QUICKTIME:-no}" = "no" ]; then @@ -74,10 +86,7 @@ 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 {} \; # Give the udev rules a number prefix to be consistent with other rules files # and move to the new location for 12.2; then remove $PKG/etc directory -- cgit v1.2.3