summaryrefslogtreecommitdiff
path: root/games/cubosphere
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2018-11-05 22:36:04 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-10 07:48:11 +0700
commitb56e0a26eb744d12f7d1ecc90e31c10bba4d1adf (patch)
tree75c29dec35b23ff4e4c1ba09c2b9bdaabc0ff58a /games/cubosphere
parent113a20b4ba1562af4eec7e2cc6e1ec4e4629c726 (diff)
downloadslackbuilds-b56e0a26eb744d12f7d1ecc90e31c10bba4d1adf.tar.gz
games/cubosphere: Updated for version beta0.3a
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'games/cubosphere')
-rw-r--r--games/cubosphere/cubosphere.SlackBuild61
-rw-r--r--games/cubosphere/cubosphere.info6
2 files changed, 41 insertions, 26 deletions
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 <larryhaja[at]gmail[dot]com>
+# Copyright 2010-2018 Larry Hajali <larryhaja[at]gmail[dot]com>
+# 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
diff --git a/games/cubosphere/cubosphere.info b/games/cubosphere/cubosphere.info
index b883fe4041..d55a63474e 100644
--- a/games/cubosphere/cubosphere.info
+++ b/games/cubosphere/cubosphere.info
@@ -1,8 +1,8 @@
PRGNAM="cubosphere"
-VERSION="beta0.3"
+VERSION="beta0.3a"
HOMEPAGE="https://sourceforge.net/projects/cubosphere/"
-DOWNLOAD="https://downloads.sourceforge.net/cubosphere/cubosphere_beta0.3_linux_src.tar.gz"
-MD5SUM="4ed44769c09fb559d12a35518564dce4"
+DOWNLOAD="https://downloads.sourceforge.net/cubosphere/cubosphere_beta0.3a_linux_src.tar.gz"
+MD5SUM="87a97675806a6722359c48953158b92a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lua"