aboutsummaryrefslogtreecommitdiff
path: root/games/chromium-bsu/chromium-bsu.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2014-06-01 10:50:02 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-01 10:50:02 +0700
commitbd10b45f3dd388ff1ea8f2db6a29790a01722cc6 (patch)
treeb8ee0e9bd38d0ad4d28ab85aedb24d3402bb47bd /games/chromium-bsu/chromium-bsu.SlackBuild
parent63f1b11c0b4a59cb5adc4654f70443aa67bf3bc3 (diff)
games/chromium-bsu: Updated for version 0.9.15.1 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/chromium-bsu/chromium-bsu.SlackBuild')
-rw-r--r--games/chromium-bsu/chromium-bsu.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/games/chromium-bsu/chromium-bsu.SlackBuild b/games/chromium-bsu/chromium-bsu.SlackBuild
index d21b45708726..f8adb1cac70b 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