diff options
Diffstat (limited to 'multimedia/kino/kino.SlackBuild')
-rw-r--r-- | multimedia/kino/kino.SlackBuild | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/multimedia/kino/kino.SlackBuild b/multimedia/kino/kino.SlackBuild index 4679bd1c73bbd..dc514c8037ab8 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 |