mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
games/xmoto: Updated for version 0.5.2
This commit is contained in:
parent
2e80d85fb3
commit
1242e6c888
6 changed files with 56 additions and 14 deletions
|
@ -2,4 +2,4 @@ X-Moto is a challenging 2D motocross platform game, where physics play an all
|
|||
important role in the gameplay. You need to control your bike to its limit, if
|
||||
you want to have a chance finishing the more difficult of the challenges.
|
||||
|
||||
Requires lua and ode.
|
||||
This requires lua and ode.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
|
35
games/xmoto/patches/xmoto-amd64_gcc441.diff
Normal file
35
games/xmoto/patches/xmoto-amd64_gcc441.diff
Normal file
|
@ -0,0 +1,35 @@
|
|||
http://bugs.gentoo.org/284464
|
||||
|
||||
--- src/DBuffer.h.org 2009-09-10 11:58:28.000000000 +0200
|
||||
+++ src/DBuffer.h 2009-09-10 12:07:30.000000000 +0200
|
||||
@@ -69,6 +69,8 @@
|
||||
void operator >>(unsigned char &c);
|
||||
void operator <<(unsigned int n);
|
||||
void operator >>(unsigned int &n);
|
||||
+ void operator <<(unsigned long n);
|
||||
+ void operator >>(unsigned long &n);
|
||||
void operator <<(float n);
|
||||
void operator >>(float &n);
|
||||
void operator <<(std::string s);
|
||||
|
||||
--- src/DBuffer.cpp.org 2009-09-10 11:58:38.000000000 +0200
|
||||
+++ src/DBuffer.cpp 2009-09-10 12:08:18.000000000 +0200
|
||||
@@ -210,6 +210,18 @@
|
||||
n = (unsigned int) sn;
|
||||
}
|
||||
|
||||
+ void DBuffer::operator <<(unsigned long n) {
|
||||
+ int sn;
|
||||
+ sn = (int) (n);
|
||||
+ *this << sn;
|
||||
+ }
|
||||
+
|
||||
+ void DBuffer::operator >>(unsigned long &n) {
|
||||
+ int sn;
|
||||
+ *this >> sn;
|
||||
+ n = (unsigned long) sn;
|
||||
+ }
|
||||
+
|
||||
void DBuffer::operator <<(float n) {
|
||||
writeBuf_LE((char *)&n, sizeof(float));
|
||||
}
|
|
@ -10,10 +10,8 @@
|
|||
# Modified by the SlackBuilds.org project
|
||||
# Updated by Alex Word <alex_word86@yahoo.com>
|
||||
|
||||
set -e
|
||||
|
||||
PRGNAM=xmoto
|
||||
VERSION=0.5.1
|
||||
VERSION=0.5.2
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
@ -25,12 +23,17 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
|
@ -41,11 +44,13 @@ chmod -R u+w,go+r-w,a-s .
|
|||
|
||||
patch -p1 < $CWD/patches/sqlite3.diff
|
||||
patch -p1 < $CWD/patches/localedir.diff
|
||||
patch -p0 < $CWD/patches/xmoto-amd64_gcc441.diff
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--localedir=/usr/share/locale \
|
||||
|
@ -69,7 +74,8 @@ install -m 0644 extra/$PRGNAM.desktop $PKG/usr/share/applications/
|
|||
gzip -9 $PKG/usr/man/man?/*.?
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ABOUT-NLS AUTHORS COPYING INSTALL NEWS README TODO ChangeLog \
|
||||
cp -a \
|
||||
ABOUT-NLS AUTHORS COPYING INSTALL NEWS README TODO ChangeLog \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
@ -78,4 +84,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
|||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="xmoto"
|
||||
VERSION="0.5.1"
|
||||
VERSION="0.5.2"
|
||||
HOMEPAGE="http://xmoto.tuxfamily.org/"
|
||||
DOWNLOAD="http://download.tuxfamily.org/xmoto/xmoto/0.5.1/xmoto-0.5.1-src.tar.gz"
|
||||
MD5SUM="10cb822ec8c2c7e9466806633e69be1f"
|
||||
DOWNLOAD="http://download.tuxfamily.org/xmoto/xmoto/0.5.2/xmoto-0.5.2-src.tar.gz"
|
||||
MD5SUM="1e3678ebceca21d61844efb53c140227"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Alex Word"
|
||||
EMAIL="alex_word86@yahoo.com"
|
||||
APPROVED="dsomero"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue