mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
games/supertuxkart: Updated for version 0.8.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
b4271e8333
commit
686a5a40c0
3 changed files with 39 additions and 37 deletions
|
@ -1,9 +1,9 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
supertuxkart: supertuxkart (A 3D Kart racing game)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Slackware build script for supertuxkart
|
||||
|
||||
# Copyright 2009-2011 Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||
# Copyright 2011-2012 Niels Horn, Rio de Janeiro, RJ, Brazil
|
||||
# Copyright 2011-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,13 +23,15 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# revision date: 2012/09/13
|
||||
# revision date: 2013/03/28
|
||||
|
||||
PRGNAM=supertuxkart
|
||||
VERSION=${VERSION:-0.7.3}
|
||||
BUILD=${BUILD:-2}
|
||||
VERSION=${VERSION:-0.8}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
UNTARRED=SuperTuxKart
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
|
@ -62,9 +64,9 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
rm -rf $UNTARRED-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
cd $UNTARRED-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
|
@ -76,25 +78,29 @@ find . \
|
|||
# Let's fix that with a few other additional cleanups.
|
||||
patch -p1 < $CWD/translations.patch
|
||||
sed -i 's|\/games|\/bin|g' data/${PRGNAM}_desktop.template
|
||||
for i in $(find . -name "Makefile.*"); do
|
||||
sed -i \
|
||||
-e "/^bindir/s|games|bin|g" \
|
||||
-e "/^pkgdatadir/s|=.*\/po|= \@localedir\@|" \
|
||||
-e 's|\/games\/|\/|g' $i
|
||||
done
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
LIBS="-lpthread" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--localedir=/usr/share/locale \
|
||||
--datadir=/usr/share \
|
||||
--enable-debug=no \
|
||||
--build=$ARCH-slackware-linux
|
||||
# First build the Irrlicht (static) library.
|
||||
# Note: This is a forked, modfied copy of irrlicht-1.8
|
||||
# The original irrlicht library cannot be used, but both
|
||||
# coexist without problems.
|
||||
cd lib/irrlicht/source/Irrlicht
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
NDEBUG=1 \
|
||||
make
|
||||
cd -
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
# Now make SuperTuxKart
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make VERBOSE=1
|
||||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
@ -102,13 +108,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
|||
mkdir -p $PKG/usr/man/man6
|
||||
gzip -9c $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
|
||||
|
||||
# Remove directories/files.
|
||||
rm -rf $PKG/usr/share/doc
|
||||
rm -f $PKG/usr/share/locale/{*.po,*.pot}
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
AUTHORS ChangeLog COPYING INSTALL README TODO \
|
||||
AUTHORS CHANGES ChangeLog COPYING INSTALL README TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="supertuxkart"
|
||||
VERSION="0.7.3"
|
||||
VERSION="0.8"
|
||||
HOMEPAGE="http://supertuxkart.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/supertuxkart/supertuxkart-0.7.3-src.tar.bz2"
|
||||
MD5SUM="502664b2ec9ad5ab88b1882fef4c074d"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/supertuxkart/supertuxkart-0.8-src.tar.bz2"
|
||||
MD5SUM="0b939ce601374758938119e0b0dd1fec"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="OpenAL irrlicht"
|
||||
REQUIRES="OpenAL"
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
|
|
Loading…
Reference in a new issue