summaryrefslogtreecommitdiff
path: root/games/supertuxkart/supertuxkart.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-05-13 00:27:16 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:27:16 +0200
commitfe1a48beec94572210a3a12dc13d95767ae4cc55 (patch)
tree9fad1e84992604a0dd36dd44048ec845261e66ed /games/supertuxkart/supertuxkart.SlackBuild
parentafac238f1e226271252b4d2b2765a210bbf82a96 (diff)
downloadslackbuilds-fe1a48beec94572210a3a12dc13d95767ae4cc55.tar.gz
games/supertuxkart: Updated for version 0.6.2a
Diffstat (limited to 'games/supertuxkart/supertuxkart.SlackBuild')
-rw-r--r--games/supertuxkart/supertuxkart.SlackBuild20
1 files changed, 12 insertions, 8 deletions
diff --git a/games/supertuxkart/supertuxkart.SlackBuild b/games/supertuxkart/supertuxkart.SlackBuild
index f8c68168b6..d07999b828 100644
--- a/games/supertuxkart/supertuxkart.SlackBuild
+++ b/games/supertuxkart/supertuxkart.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=supertuxkart
-VERSION=${VERSION:-0.6.1a}
+VERSION=${VERSION:-0.6.2a}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -32,7 +32,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -42,16 +42,20 @@ find . \
-exec chmod 644 {} \;
# The Makefile's don't respect directory variables given to configure.
-# Let's fix that.
-patch -p1 < $CWD/patches/Makefile_am.diff
-patch -p1 < $CWD/patches/Makefile_in.diff
-patch -p1 < $CWD/patches/fix-bin-directory.diff
+# 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" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--localedir=/usr/share/locale \
--datadir=/usr/share \
--enable-debug=no \
@@ -78,4 +82,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 $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}