diff options
author | Alex Word <alex_word86@yahoo.com> | 2010-05-12 17:39:42 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:39:42 +0200 |
commit | 98cc6486f87251a68f3dfbc9a0a4486bc328a771 (patch) | |
tree | d1b9b5a2e1d224be4bbe95607b0add8bc0c9d0d9 /games/xmoto/xmoto.SlackBuild | |
parent | e6c6e9aa4f5a6e1488881f4a300340faf104f132 (diff) | |
download | slackbuilds-98cc6486f87251a68f3dfbc9a0a4486bc328a771.tar.gz |
games/xmoto: Updated for version 0.5.1
Diffstat (limited to 'games/xmoto/xmoto.SlackBuild')
-rw-r--r-- | games/xmoto/xmoto.SlackBuild | 73 |
1 files changed, 38 insertions, 35 deletions
diff --git a/games/xmoto/xmoto.SlackBuild b/games/xmoto/xmoto.SlackBuild index dfd310d666..114c921c36 100644 --- a/games/xmoto/xmoto.SlackBuild +++ b/games/xmoto/xmoto.SlackBuild @@ -8,71 +8,74 @@ ## did not write. Thanks. # Modified by the SlackBuilds.org project +# Updated by Alex Word <alex_word86@yahoo.com> set -e -NAME=xmoto -VERSION=0.2.4 +PRGNAM=xmoto +VERSION=0.5.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=${PKG:-$TMP/package-$NAME} +PKG=${PKG:-$TMP/package-$PRGNAM} OUTPUT=${OUTPUT:-/tmp} -rm -rf $PKG $TMP/$NAME-$VERSION -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -tar zxvf $CWD/$NAME-$VERSION-src.tar.gz -cd $NAME-$VERSION -chown -R root:root . -chmod -R u+w,go+r-w,a-s . - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi +rm -rf $PKG $TMP/$PRGNAM-$VERSION +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +patch -p1 < $CWD/patches/sqlite3.diff +patch -p1 < $CWD/patches/localedir.diff + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/games \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --libdir=/usr/lib/games \ - --datadir=/usr/share/games \ - --datarootdir=/usr \ - --docdir=/usr/doc/$NAME-$VERSION \ - --enable-threads=posix \ - --with-enable-www=1 \ - --with-enable-zoom=1 + --prefix=/usr \ + --localstatedir=/var \ + --mandir=/usr/man \ + --localedir=/usr/share/locale \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --with-localesdir=/usr/share/locale \ + --disable-dependency-tracking \ + --enable-threads=posix \ + --with-enable-zoom=1 \ + --with-renderer-sdlGfx=0 \ + --with-renderer-openGl=1 \ + --with-x \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/share/{pixmaps,applications} -install -m 0644 extra/$NAME.xpm $PKG/usr/share/pixmaps/ -install -m 0644 extra/$NAME.desktop $PKG/usr/share/applications/ - -# X-Moto doesn't like to honour the locale options that -# the configure script says it does. -mv $PKG/usr/share/games/locale $PKG/usr/share +install -m 0644 extra/$PRGNAM.xpm $PKG/usr/share/pixmaps/ +install -m 0644 extra/$PRGNAM.desktop $PKG/usr/share/applications/ -# Man pages are already gzipped, but there's one small problem -mv $PKG/usr/man/mang $PKG/usr/man/man6 +gzip -9 $PKG/usr/man/man?/*.? -mkdir -p $PKG/usr/doc/$NAME-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ABOUT-NLS AUTHORS COPYING INSTALL NEWS README TODO ChangeLog \ - $PKG/usr/doc/$NAME-$VERSION -cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install 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/$NAME-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |