diff options
Diffstat (limited to 'games/chromium-bsu/chromium-bsu.SlackBuild')
-rw-r--r-- | games/chromium-bsu/chromium-bsu.SlackBuild | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/games/chromium-bsu/chromium-bsu.SlackBuild b/games/chromium-bsu/chromium-bsu.SlackBuild index d21b45708726a..f8adb1cac70b5 100644 --- a/games/chromium-bsu/chromium-bsu.SlackBuild +++ b/games/chromium-bsu/chromium-bsu.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for chromium # # Copyright 2007 Niklas "Nille" Åkerström +# Copyright 2014 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ # Modified by Erik Hanson <erik@slackbuilds.org> PRGNAM=chromium-bsu -VERSION=0.9.14.1 +VERSION=${VERSION:-0.9.15.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -48,6 +49,8 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" +else + SLKCFLAGS="-O2" fi set -e @@ -65,27 +68,25 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --bindir=/usr/games \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --disable-glut \ - --disable-openal - -# --enable doesn't work, use --disable instead. -# Use --disable-sdl to use glut instead of SDL. -# --disable-sdl --disable-sdlmixer + --disable-rpath \ + --with-x make -make install-strip DESTDIR=$PKG +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -gzip -9 $PKG/usr/man/man?/*.? +find $PKG/usr/man -type f -exec gzip -9 {} \; -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp \ - ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* data/doc/*.htm \ + AUTHORS ChangeLog COPYING NEWS README* data/doc/*.htm \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |