games/spring: Updated for version 0.80.5.2
This commit is contained in:
parent
d7018821d2
commit
8e84134d25
|
@ -1,4 +1,4 @@
|
||||||
Spring is a project aiming to create a new and versatile RTS Engine.
|
Spring is a project aiming to create a new and versatile RTS Engine.
|
||||||
|
|
||||||
Build requirements, available at SlackBuilds.org:
|
This requires p7zip, OpenAL, DevIL, and icu4c.
|
||||||
boost, OpenAL, DevIL, icu4c, glew, and scons
|
You will also need jdk from /extra.
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
if [ -x /usr/bin/update-desktop-database ]; then
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
/usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -x /usr/bin/update-mime-database ]; then
|
||||||
|
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,29 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for Spring
|
# Slackware build script for Spring
|
||||||
# Written by Erik Hanson erik@slackbuilds.org
|
|
||||||
|
# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
|
||||||
|
# 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=spring
|
PRGNAM=spring
|
||||||
VERSION=0.78.2.1
|
VERSION=0.80.5.2
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -14,6 +33,12 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
if [ "$ARCH" = "x86_64" ]; then
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
fi
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
|
@ -25,16 +50,15 @@ cd ${PRGNAM}_${VERSION}
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
chmod -R u+w,go+r-w,a-s .
|
||||||
|
|
||||||
# This uses some form of auto-detection: rts/build/scons/detect.py
|
cmake \
|
||||||
# This should be safe, but does not create a redistributable package.
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
scons configure \
|
-DLIBDIR=/usr/lib${LIBDIRSUFFIX} \
|
||||||
prefix=/usr \
|
.
|
||||||
installprefix=$PKG/usr
|
make
|
||||||
scons
|
make install DESTDIR=$PKG
|
||||||
scons install
|
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a LICENSE.html Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a LICENSE.html Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
@ -45,4 +69,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="spring"
|
PRGNAM="spring"
|
||||||
VERSION="0.78.2.1"
|
VERSION="0.80.5.2"
|
||||||
HOMEPAGE="http://springrts.com"
|
HOMEPAGE="http://springrts.com"
|
||||||
DOWNLOAD="http://spring.clan-sy.com/dl/spring_0.78.2.1_src.tar.gz"
|
DOWNLOAD="http://spring.clan-sy.com/dl/spring_0.80.5.2_src.tar.gz"
|
||||||
MD5SUM="8f3dd6c79b254fde9c1b6643eca97729"
|
MD5SUM="169b74ae3d3c66c72381690a3f87eb67"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Erik Hanson"
|
MAINTAINER="Erik Hanson"
|
||||||
EMAIL="erik@slackbuilds.org"
|
EMAIL="erik@slackbuilds.org"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in New Issue