summaryrefslogtreecommitdiff
path: root/games/supertuxkart/supertuxkart.SlackBuild
diff options
context:
space:
mode:
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}