From b56e0a26eb744d12f7d1ecc90e31c10bba4d1adf Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Mon, 5 Nov 2018 22:36:04 -0800 Subject: games/cubosphere: Updated for version beta0.3a Signed-off-by: Larry Hajali --- games/cubosphere/cubosphere.SlackBuild | 61 +++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 23 deletions(-) (limited to 'games/cubosphere/cubosphere.SlackBuild') diff --git a/games/cubosphere/cubosphere.SlackBuild b/games/cubosphere/cubosphere.SlackBuild index 17f777322a..3a2da51d2e 100644 --- a/games/cubosphere/cubosphere.SlackBuild +++ b/games/cubosphere/cubosphere.SlackBuild @@ -2,16 +2,34 @@ # Slackware build script for cubosphere -# Written by Larry Hajali +# Copyright 2010-2018 Larry Hajali +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=cubosphere -VERSION=${VERSION:-beta0.3} +VERSION=${VERSION:-beta0.3a} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -22,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -44,30 +62,27 @@ cd $TMP rm -rf ${PRGNAM}_${VERSION} tar xvf $CWD/${PRGNAM}_${VERSION}_linux_src.tar.gz cd ${PRGNAM}_${VERSION} -# Remove unwanted files. -find . -name "Thumbs.db" -o -name "*~" -exec rm -f {} \; chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; cd src -# Fix Makefile. -sed -i \ - -e '/^PREFIX/s|=.*|=/usr|' \ - -e '1s|^#||' \ - -e "s|-O3$|$SLKCFLAGS|" \ - -e "s|^LUALIBS=.*|LUALIBS=-llua|" \ - -e "s|^LUAINC=.*|LUAINC=-I/usr/include|" \ - Makefile || exit 1 + # Fix Makefile. + sed -i \ + -e '/^PREFIX/s|=.*|=/usr|' \ + -e "s|-O3$|$SLKCFLAGS|" \ + -e "s|^LUALIBS=.*|LUALIBS=-llua|" \ + -e "s|^LUAINC=.*|LUAINC=-I/usr/include|" \ + Makefile -make -make install DESTDIR=$PKG -cd .. + make + make install DESTDIR=$PKG +cd - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps -- cgit v1.2.3-65-gdbad