summaryrefslogtreecommitdiff
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
parentafac238f1e226271252b4d2b2765a210bbf82a96 (diff)
downloadslackbuilds-fe1a48beec94572210a3a12dc13d95767ae4cc55.tar.gz
games/supertuxkart: Updated for version 0.6.2a
-rw-r--r--games/supertuxkart/README4
-rw-r--r--games/supertuxkart/patches/Makefile_am.diff121
-rw-r--r--games/supertuxkart/patches/Makefile_in.diff132
-rw-r--r--games/supertuxkart/patches/fix-bin-directory.diff53
-rw-r--r--games/supertuxkart/supertuxkart.SlackBuild20
-rw-r--r--games/supertuxkart/supertuxkart.info8
-rw-r--r--games/supertuxkart/translations.patch16
7 files changed, 36 insertions, 318 deletions
diff --git a/games/supertuxkart/README b/games/supertuxkart/README
index 15a33880ad..ecc1b5b8d6 100644
--- a/games/supertuxkart/README
+++ b/games/supertuxkart/README
@@ -4,4 +4,6 @@ play with up to 4 friends on one PC, racing against each
other or just try to beat the computer. (a network multiplayer
feature is under development).
-Requires: plib and OpenAL available at SlackBuilds.org. \ No newline at end of file
+Requires: plib, OpenAL and freealut.
+
+Optional: supertuxkart-extra-karts and supertuxkart-extra-tracks.
diff --git a/games/supertuxkart/patches/Makefile_am.diff b/games/supertuxkart/patches/Makefile_am.diff
deleted file mode 100644
index 38c4da98ad..0000000000
--- a/games/supertuxkart/patches/Makefile_am.diff
+++ /dev/null
@@ -1,121 +0,0 @@
-diff -Naur supertuxkart-0.6.1a.orig/data/Makefile.am supertuxkart-0.6.1a/data/Makefile.am
---- supertuxkart-0.6.1a.orig/data/Makefile.am 2009-01-28 22:57:55.000000000 +0000
-+++ supertuxkart-0.6.1a/data/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,7 +1,7 @@
- # data/
-
- SUBDIRS = fonts items karts models music po sfx textures tracks grandprix
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data
-+pkgdatadir = $(datadir)/$(PACKAGE)/data
-
- dist_pkgdata_DATA = \
- $(shell find $(srcdir) -name "*.data") \
-diff -Naur supertuxkart-0.6.1a.orig/data/fonts/Makefile.am supertuxkart-0.6.1a/data/fonts/Makefile.am
---- supertuxkart-0.6.1a.orig/data/fonts/Makefile.am 2009-01-28 22:57:39.000000000 +0000
-+++ supertuxkart-0.6.1a/data/fonts/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,5 +1,5 @@
- # data/fonts/
-
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/fonts
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/fonts
-
- dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.txf")
-diff -Naur supertuxkart-0.6.1a.orig/data/grandprix/Makefile.am supertuxkart-0.6.1a/data/grandprix/Makefile.am
---- supertuxkart-0.6.1a.orig/data/grandprix/Makefile.am 2009-01-28 22:57:55.000000000 +0000
-+++ supertuxkart-0.6.1a/data/grandprix/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/music
-
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/grandprix
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/grandprix
-
- dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.grandprix") \
- $(shell find $(srcdir) -name "*.challenge")
-diff -Naur supertuxkart-0.6.1a.orig/data/items/Makefile.am supertuxkart-0.6.1a/data/items/Makefile.am
---- supertuxkart-0.6.1a.orig/data/items/Makefile.am 2009-01-28 22:57:39.000000000 +0000
-+++ supertuxkart-0.6.1a/data/items/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/herrings/
-
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/items
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/items
-
- dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.ac") License.txt
-
-diff -Naur supertuxkart-0.6.1a.orig/data/karts/Makefile.am supertuxkart-0.6.1a/data/karts/Makefile.am
---- supertuxkart-0.6.1a.orig/data/karts/Makefile.am 2009-02-18 23:43:38.000000000 +0000
-+++ supertuxkart-0.6.1a/data/karts/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/karts
-
--pkgdatadir= $(datadir)/games/$(PACKAGE)/data/karts
-+pkgdatadir= $(datadir)/$(PACKAGE)/data/karts
-
- nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "materials.dat") \
- $(shell find $(srcdir) -name "*.rgb") \
-diff -Naur supertuxkart-0.6.1a.orig/data/models/Makefile.am supertuxkart-0.6.1a/data/models/Makefile.am
---- supertuxkart-0.6.1a.orig/data/models/Makefile.am 2009-01-28 22:57:55.000000000 +0000
-+++ supertuxkart-0.6.1a/data/models/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/models/
-
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/models
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/models
-
- dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.ac") License.txt
-
-diff -Naur supertuxkart-0.6.1a.orig/data/music/Makefile.am supertuxkart-0.6.1a/data/music/Makefile.am
---- supertuxkart-0.6.1a.orig/data/music/Makefile.am 2009-01-28 22:57:47.000000000 +0000
-+++ supertuxkart-0.6.1a/data/music/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/music
-
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/music
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/music
-
- dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.ogg") \
- $(shell find $(srcdir) -name "*.music") \
-diff -Naur supertuxkart-0.6.1a.orig/data/po/Makefile.am supertuxkart-0.6.1a/data/po/Makefile.am
---- supertuxkart-0.6.1a.orig/data/po/Makefile.am 2009-01-28 22:57:38.000000000 +0000
-+++ supertuxkart-0.6.1a/data/po/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/po/
-
--pkgdatadir = $(datadir)/games/@PACKAGE@/data/po
-+pkgdatadir = @localedir@
-
- nobase_pkgdata_DATA = $(shell find $(srcdir) -name "*.po") \
- $(shell find $(srcdir) -name "*.mo") \
-diff -Naur supertuxkart-0.6.1a.orig/data/sfx/Makefile.am supertuxkart-0.6.1a/data/sfx/Makefile.am
---- supertuxkart-0.6.1a.orig/data/sfx/Makefile.am 2009-01-28 22:57:39.000000000 +0000
-+++ supertuxkart-0.6.1a/data/sfx/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # sfx/
-
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/sfx
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/sfx
-
- nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.wav") \
- $(shell find $(srcdir) -name "README")\
-diff -Naur supertuxkart-0.6.1a.orig/data/textures/Makefile.am supertuxkart-0.6.1a/data/textures/Makefile.am
---- supertuxkart-0.6.1a.orig/data/textures/Makefile.am 2009-01-28 22:57:54.000000000 +0000
-+++ supertuxkart-0.6.1a/data/textures/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/textures
-
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/textures
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/textures
- dist_pkgdata_DATA = $(shell find $(srcdir) -name "*.rgb") materials.dat License.txt
-
-
-diff -Naur supertuxkart-0.6.1a.orig/data/tracks/Makefile.am supertuxkart-0.6.1a/data/tracks/Makefile.am
---- supertuxkart-0.6.1a.orig/data/tracks/Makefile.am 2009-01-28 22:58:20.000000000 +0000
-+++ supertuxkart-0.6.1a/data/tracks/Makefile.am 2009-05-14 06:53:59.000000000 +0000
-@@ -1,6 +1,6 @@
- # data/tracks
-
--pkgdatadir= $(datadir)/games/$(PACKAGE)/data/tracks
-+pkgdatadir= $(datadir)/$(PACKAGE)/data/tracks
- nobase_dist_pkgdata_DATA = $(shell find $(srcdir) -name "readme.txt") \
- $(shell find $(srcdir) -name "*.track") \
- $(shell find $(srcdir) -name "*.drv?") \
diff --git a/games/supertuxkart/patches/Makefile_in.diff b/games/supertuxkart/patches/Makefile_in.diff
deleted file mode 100644
index 4ceb85dafd..0000000000
--- a/games/supertuxkart/patches/Makefile_in.diff
+++ /dev/null
@@ -1,132 +0,0 @@
-diff -Naur supertuxkart-0.6.1a.orig/data/Makefile.in supertuxkart-0.6.1a/data/Makefile.in
---- supertuxkart-0.6.1a.orig/data/Makefile.in 2009-02-18 23:30:40.000000000 +0000
-+++ supertuxkart-0.6.1a/data/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -75,7 +75,7 @@
- CTAGS = ctags
- DIST_SUBDIRS = $(SUBDIRS)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data
-+pkgdatadir = $(datadir)/$(PACKAGE)/data
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/fonts/Makefile.in supertuxkart-0.6.1a/data/fonts/Makefile.in
---- supertuxkart-0.6.1a.orig/data/fonts/Makefile.in 2009-02-18 23:30:40.000000000 +0000
-+++ supertuxkart-0.6.1a/data/fonts/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- dist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
- DATA = $(dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/fonts
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/fonts
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/grandprix/Makefile.in supertuxkart-0.6.1a/data/grandprix/Makefile.in
---- supertuxkart-0.6.1a.orig/data/grandprix/Makefile.in 2009-02-18 23:30:40.000000000 +0000
-+++ supertuxkart-0.6.1a/data/grandprix/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- dist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
- DATA = $(dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/grandprix
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/grandprix
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/items/Makefile.in supertuxkart-0.6.1a/data/items/Makefile.in
---- supertuxkart-0.6.1a.orig/data/items/Makefile.in 2009-02-18 23:30:40.000000000 +0000
-+++ supertuxkart-0.6.1a/data/items/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- dist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
- DATA = $(dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/items
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/items
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/karts/Makefile.in supertuxkart-0.6.1a/data/karts/Makefile.in
---- supertuxkart-0.6.1a.orig/data/karts/Makefile.in 2009-02-18 23:44:11.000000000 +0000
-+++ supertuxkart-0.6.1a/data/karts/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- nobase_dist_pkgdataDATA_INSTALL = $(install_sh_DATA)
- DATA = $(nobase_dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/karts
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/karts
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/models/Makefile.in supertuxkart-0.6.1a/data/models/Makefile.in
---- supertuxkart-0.6.1a.orig/data/models/Makefile.in 2009-02-18 23:30:40.000000000 +0000
-+++ supertuxkart-0.6.1a/data/models/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- dist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
- DATA = $(dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/models
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/models
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/music/Makefile.in supertuxkart-0.6.1a/data/music/Makefile.in
---- supertuxkart-0.6.1a.orig/data/music/Makefile.in 2009-02-18 23:30:40.000000000 +0000
-+++ supertuxkart-0.6.1a/data/music/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- dist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
- DATA = $(dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/music
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/music
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/po/Makefile.in supertuxkart-0.6.1a/data/po/Makefile.in
---- supertuxkart-0.6.1a.orig/data/po/Makefile.in 2009-02-18 23:30:40.000000000 +0000
-+++ supertuxkart-0.6.1a/data/po/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -62,7 +62,7 @@
- nobase_pkgdataDATA_INSTALL = $(install_sh_DATA)
- DATA = $(nobase_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/@PACKAGE@/data/po
-+pkgdatadir = @localedir@
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/sfx/Makefile.in supertuxkart-0.6.1a/data/sfx/Makefile.in
---- supertuxkart-0.6.1a.orig/data/sfx/Makefile.in 2009-02-18 23:30:41.000000000 +0000
-+++ supertuxkart-0.6.1a/data/sfx/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- nobase_dist_pkgdataDATA_INSTALL = $(install_sh_DATA)
- DATA = $(nobase_dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/sfx
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/sfx
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/textures/Makefile.in supertuxkart-0.6.1a/data/textures/Makefile.in
---- supertuxkart-0.6.1a.orig/data/textures/Makefile.in 2009-02-18 23:30:41.000000000 +0000
-+++ supertuxkart-0.6.1a/data/textures/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- dist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
- DATA = $(dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/textures
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/textures
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
-diff -Naur supertuxkart-0.6.1a.orig/data/tracks/Makefile.in supertuxkart-0.6.1a/data/tracks/Makefile.in
---- supertuxkart-0.6.1a.orig/data/tracks/Makefile.in 2009-02-18 23:30:41.000000000 +0000
-+++ supertuxkart-0.6.1a/data/tracks/Makefile.in 2009-05-14 08:20:11.000000000 +0000
-@@ -63,7 +63,7 @@
- nobase_dist_pkgdataDATA_INSTALL = $(install_sh_DATA)
- DATA = $(nobase_dist_pkgdata_DATA)
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--pkgdatadir = $(datadir)/games/$(PACKAGE)/data/tracks
-+pkgdatadir = $(datadir)/$(PACKAGE)/data/tracks
- ACLOCAL = @ACLOCAL@
- AMDEP_FALSE = @AMDEP_FALSE@
- AMDEP_TRUE = @AMDEP_TRUE@
diff --git a/games/supertuxkart/patches/fix-bin-directory.diff b/games/supertuxkart/patches/fix-bin-directory.diff
deleted file mode 100644
index 095b731c68..0000000000
--- a/games/supertuxkart/patches/fix-bin-directory.diff
+++ /dev/null
@@ -1,53 +0,0 @@
-diff -Naur supertuxkart-0.6.1a.orig/src/Makefile.am supertuxkart-0.6.1a/src/Makefile.am
---- supertuxkart-0.6.1a.orig/src/Makefile.am 2009-02-16 01:23:45.000000000 +0000
-+++ supertuxkart-0.6.1a/src/Makefile.am 2009-05-14 06:54:40.000000000 +0000
-@@ -2,10 +2,10 @@
-
- SUBDIRS = ide
-
--bindir=$(prefix)/games
-+bindir=$(prefix)/bin
- bin_PROGRAMS = supertuxkart
-
--AM_CPPFLAGS = -DSUPERTUXKART_DATADIR="\"$(datadir)/games/$(PACKAGE)/\"" \
-+AM_CPPFLAGS = -DSUPERTUXKART_DATADIR="\"$(datadir)/$(PACKAGE)/\"" \
- -I$(srcdir)/bullet/src/ -I$(srcdir)/enet/include/
-
- supertuxkart_SOURCES = \
-diff -Naur supertuxkart-0.6.1a.orig/src/Makefile.in supertuxkart-0.6.1a/src/Makefile.in
---- supertuxkart-0.6.1a.orig/src/Makefile.in 2009-02-18 23:30:42.000000000 +0000
-+++ supertuxkart-0.6.1a/src/Makefile.in 2009-05-14 08:49:48.000000000 +0000
-@@ -226,7 +226,7 @@
- am__quote = @am__quote@
- am__tar = @am__tar@
- am__untar = @am__untar@
--bindir = $(prefix)/games
-+bindir = $(prefix)/bin
- build = @build@
- build_alias = @build_alias@
- build_cpu = @build_cpu@
-@@ -271,7 +271,7 @@
- sysconfdir = @sysconfdir@
- target_alias = @target_alias@
- SUBDIRS = ide
--AM_CPPFLAGS = -DSUPERTUXKART_DATADIR="\"$(datadir)/games/$(PACKAGE)/\"" \
-+AM_CPPFLAGS = -DSUPERTUXKART_DATADIR="\"$(datadir)/$(PACKAGE)/\"" \
- -I$(srcdir)/bullet/src/ -I$(srcdir)/enet/include/
-
- supertuxkart_SOURCES = \
-diff -Naur supertuxkart-0.6.1a.orig/data/supertuxkart_desktop.template supertuxkart-0.6.1a/data/supertuxkart_desktop.template
---- supertuxkart-0.6.1a.orig/data/supertuxkart_desktop.template 2009-01-28 22:57:49.000000000 +0000
-+++ supertuxkart-0.6.1a/data/supertuxkart_desktop.template 2009-05-14 09:01:44.000000000 +0000
-@@ -8,10 +8,10 @@
- Comment[fr_FR]=Un jeu de karting
- Comment[ro_RO]=Un joc de curse cu carturi
- Comment[de_DE]=Ein Kart-Rennspiel
--Exec=PREFIX/games/supertuxkart --log=file
-+Exec=PREFIX/bin/supertuxkart --log=file
- Terminal=false
- StartupNotify=false
- Type=Application
--TryExec=PREFIX/games/supertuxkart
-+TryExec=PREFIX/bin/supertuxkart
- Categories=Game;ArcadeGame
- GenericName=
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}
diff --git a/games/supertuxkart/supertuxkart.info b/games/supertuxkart/supertuxkart.info
index 22c6aba6bd..e749516c68 100644
--- a/games/supertuxkart/supertuxkart.info
+++ b/games/supertuxkart/supertuxkart.info
@@ -1,8 +1,10 @@
PRGNAM="supertuxkart"
-VERSION="0.6.1a"
+VERSION="0.6.2a"
HOMEPAGE="http://supertuxkart.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/sourceforge/supertuxkart/supertuxkart-0.6.1a.tar.bz2"
-MD5SUM="2617a0de97f604ca692fcbd685e742ef"
+DOWNLOAD="http://downloads.sourceforge.net/supertuxkart/supertuxkart-0.6.2a-src.tar.bz2"
+DOWNLOAD_x86_64=""
+MD5SUM="1672795016cc4964506706ac3287621e"
+MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="dsomero"
diff --git a/games/supertuxkart/translations.patch b/games/supertuxkart/translations.patch
new file mode 100644
index 0000000000..2438891bb4
--- /dev/null
+++ b/games/supertuxkart/translations.patch
@@ -0,0 +1,16 @@
+diff -Naur supertuxkart-0.6.1a.orig/src/file_manager.cpp supertuxkart-0.6.1a/src/file_manager.cpp
+--- supertuxkart-0.6.1a.orig/src/file_manager.cpp 2009-01-29 01:30:09.000000000 +0000
++++ supertuxkart-0.6.1a/src/file_manager.cpp 2009-06-10 13:12:03.000000000 +0000
+@@ -212,7 +212,12 @@
+ //-----------------------------------------------------------------------------
+ std::string FileManager::getTranslationDir() const
+ {
++#if !defined(TRANSLATION_DIR) && !defined(__APPLE__) && !defined(WIN32)
++#define TRANSLATION_DIR "/usr/share/locale"
++ return TRANSLATION_DIR;
++#else
+ return m_root_dir+"/data/po";
++#endif
+ } // getTranslationDir
+
+ //-----------------------------------------------------------------------------