Package Details: supertux-git 1:0.6.3.r548.g81809dd5e-1

Git Clone URL: https://aur.archlinux.org/supertux-git.git (read-only, click to copy)
Package Base: supertux-git
Description: A classic 2D jump'n run sidescroller game in a style similar to the original SuperMario game
Upstream URL: http://supertux.lethargik.org/
Licenses: GPL
Conflicts: supertux
Provides: supertux
Submitter: chenxiaolong
Maintainer: FredBezies
Last Packager: FredBezies
Votes: 14
Popularity: 0.000000
First Submitted: 2012-02-16 21:18 (UTC)
Last Updated: 2022-06-18 11:55 (UTC)

Latest Comments

FredBezies commented on 2021-02-04 12:39 (UTC)

@workonfire: done in supertux-git 1:v0.6.2.r617.g99fa836b3-2

workonfire commented on 2021-02-04 12:13 (UTC)

'physfs' should be in depends, not makedepends. This library is required for the game to start.

tuckerboniface commented on 2019-01-11 02:22 (UTC)

I apologise for the long wait, freetype2 has been added as a dependency.

colinkeenan commented on 2019-01-11 01:56 (UTC)

@FredBezies, @tuckerboniface, @chenxiaolong

One of you, please add the missing makedepends, 'freetype2'

(I'm not sure, but maybe it should be in depends instead of makedepends)

colinkeenan commented on 2018-12-23 03:34 (UTC)

@tuckerboniface or @FredBezies or whoever is maintaining this. There is a missing dependency (or make dependency):

freetype2

@erock - thanks. Adding 'freetype2' to the dependency list works, so it should be in the PKGBUILD here in the AUR.

erock commented on 2018-11-25 16:50 (UTC)

@colinkeenan The latest version of supertux doesn't seem to require the hack anymore -- it works for me without any changes. If it isn't working in a clean chroot, perhaps adding 'freetype2' to the list of dependencies is necessary?

colinkeenan commented on 2018-11-21 22:23 (UTC) (edited on 2018-11-21 23:14 (UTC) by colinkeenan)

That trick doesn't work for me (or anymore - I don't know because I didn't try it in October).

It doesn't work because CMakeLists.txt no long contains the string 'freetype' or 'FREETYPE_DIR'. That line that KokPok changed no longer exists. The only line containing anything about freetype is this:

    target_link_libraries(supertux2_lib PUBLIC ${FREETYPE_LIBRARIES})

Any solutions?

However, the older trick of putting an executable freetype-config in /usr/bin works. It's just that I can't do it in a clean chroot and I don't see anyway to fix the PKGBUILD since setting an alias didn't work.

erock commented on 2018-10-23 15:38 (UTC)

Adding the lines in cogwerkz's solution works for me as well.

cogwerkz commented on 2018-10-04 10:10 (UTC) (edited on 2018-10-04 10:14 (UTC) by cogwerkz)

Following up on KokPok's solution, I added the following 3 lines to the prepare() function in the PKGBUILD, and it now (for me at least) compiles, installs and runs fine! :)

  line_old='--with-freetype-prefix=${FREETYPE_DIR}'
  line_new='--with-freetype-prefix=/usr'
  sed -i "s%$line_old%$line_new%g" ./CMakeLists.txt

KokPok commented on 2018-10-01 13:44 (UTC)

Found another solution: inside supertux directory CMakeLists.txt line 409 change "--with-freetype-prefix=${FREETYPE_DIR}" parameter to "--with-freetype-prefix=/usr". Now, please, check if it works for you and make appropriate patch for CMakeLists.txt I am not smart enough for that :)

FredBezies commented on 2018-09-29 17:21 (UTC)

This PKGBUILD is utterly broken. Even after adding this in prepare() it won't build for long.

alias freetype-config='pkg-config freetype2 "$@"'

So orphaning it. Sorry.

erock commented on 2018-09-29 14:50 (UTC)

I got around the SDL_ttf error by creating a script named "freetype-config" in my PATH as follows:

#!/bin/sh

pkg-config freetype2 "$@"

Perhaps this could be incorporated into the PKGBUILD.

FredBezies commented on 2018-09-15 18:49 (UTC) (edited on 2018-09-15 18:50 (UTC) by FredBezies)

Related to this commit ? https://github.com/SuperTux/supertux/commit/05a101d2359c7a202ceee3420426065f3ca247f2

There is another error related to freetype-config not be found :

checking for freetype-config... no configure: error: *** Unable to find FreeType2 library (http://www.freetype.org/)

make[2]: *** [CMakeFiles/SDL_ttf.dir/build.make:106: SDL_ttf-prefix/src/SDL_ttf-stamp/SDL_ttf-configure] Error 1

And it cannot be build as of today, september 15 :

https://ci.appveyor.com/project/supertux/supertux-9ml4d/branch/master

We have to wait.

colinkeenan commented on 2018-09-15 17:36 (UTC) (edited on 2018-09-15 17:37 (UTC) by colinkeenan)

Won't compile for me in a clean chroot now. Here's the error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Please set them or make sure they are set and tested correctly in the CMake files:

FREETYPE_LIBRARY linked by target "supertux2_lib" in directory /build/supertux-git/src/supertux

RAQM_LIBRARIES linked by target "supertux2_lib" in directory /build/supertux-git/src/supertux

FredBezies commented on 2018-06-03 09:19 (UTC) (edited on 2018-06-03 09:37 (UTC) by FredBezies)

@FFY00 : I adopted this PKGBUILD. I cleaned it up a little following your comment :)

FFY00 commented on 2018-06-02 20:29 (UTC)

Why are you downloading the submodules one by one? This will break if upstream changes something.

colinkeenan commented on 2017-08-24 02:00 (UTC)

There seem to be some unnecessary dependencies now: . . . Checking PKGBUILD Checking supertux-git-8143.90755da83-1-x86_64.pkg.tar.xz supertux-git W: Potential non-FHS info page (usr/share/games/supertux2/levels/halloween2014/info) found. supertux-git W: Potential non-FHS info page (usr/share/games/supertux2/levels/bonus2/info) found. supertux-git W: Potential non-FHS info page (usr/share/games/supertux2/levels/bonus3/info) found. supertux-git W: Potential non-FHS info page (usr/share/games/supertux2/levels/world2/info) found. supertux-git W: Potential non-FHS info page (usr/share/games/supertux2/levels/bonus1/info) found. supertux-git W: Potential non-FHS info page (usr/share/games/supertux2/levels/world1/info) found. supertux-git W: Dependency included and not needed ('physfs') supertux-git W: Dependency included and not needed ('boost') I have no idea what the "Potential non-FHS info page" warnings are about.

colinkeenan commented on 2016-06-11 17:25 (UTC)

I figured out how to make this compile. The problem is that warnings are treated as errors everywhere and we are probably using a later version of gcc than the author so we are getting more warnings that stop the compile only because they are treated as errors. After it failed to compile, I did the following and it worked: cd src grep -rl "\-Werror" | xargs sed -i "s/\-Werror//g" cd .. With that change, maekpkg worked. After installing, the game works as well. Maybe something like this should be added to PKGBUILD because we don't care about warnings and certainly don't want them to be treated as errors.

colinkeenan commented on 2016-06-04 14:54 (UTC)

It's been a month since this package built on my system. Can anyone build this?

colinkeenan commented on 2016-05-04 01:01 (UTC)

Builds today 5/3. Guess it's to be expected with a git package in active development.

colinkeenan commented on 2016-05-01 03:28 (UTC)

Doesn't build on 4/30/2016: . . . [100%] Built target tinygettext . . . [ 3%] Completed 'tinygettext' [ 3%] Built target tinygettext Scanning dependencies of target sexp [ 3%] Building CXX object CMakeFiles/sexp.dir/external/sexp-cpp/src/io.cpp.o [ 3%] Building CXX object CMakeFiles/sexp.dir/external/sexp-cpp/src/value.cpp.o [ 4%] Building CXX object CMakeFiles/sexp.dir/external/sexp-cpp/src/util.cpp.o [ 4%] Building CXX object CMakeFiles/sexp.dir/external/sexp-cpp/src/parser.cpp.o [ 4%] Building CXX object CMakeFiles/sexp.dir/external/sexp-cpp/src/lexer.cpp.o [ 5%] Linking CXX static library libsexp.a [ 5%] Built target sexp Scanning dependencies of target squirrel [ 5%] Creating directories for 'squirrel' [ 6%] No download step for 'squirrel' [ 6%] No patch step for 'squirrel' [ 6%] No update step for 'squirrel' [ 7%] Performing configure step for 'squirrel' . . . -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: LIB_SUFFIX -- Build files have been written to: /home/colin/abs/supertux-git/src/supertux/squirrel-prefix/src/squirrel-build [ 7%] Performing build step for 'squirrel' Scanning dependencies of target squirrel . . . [ 7%] Completed 'squirrel' [ 7%] Built target squirrel Scanning dependencies of target supertux2_c [ 8%] Building C object CMakeFiles/supertux2_c.dir/external/findlocale/findlocale.c.o [ 8%] Building C object CMakeFiles/supertux2_c.dir/external/obstack/obstack.c.o [ 8%] Built target supertux2_c Scanning dependencies of target supertux2_lib [ 8%] Building CXX object CMakeFiles/supertux2_lib.dir/src/addon/addon.cpp.o [ 9%] Building CXX object CMakeFiles/supertux2_lib.dir/src/addon/addon_manager.cpp.o /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp: In function ‘MD5 {anonymous}::md5_from_file(const string&)’: /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:67:72: error: ‘PHYSFS_readBytes’ was not declared in this scope PHYSFS_sint64 len = PHYSFS_readBytes(file, buffer, sizeof(buffer)); ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp: In function ‘void {anonymous}::add_to_dictionary_path(void*, const char*, const char*)’: /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:88:5: error: ‘PHYSFS_Stat’ was not declared in this scope PHYSFS_Stat statbuf; ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:89:37: error: ‘statbuf’ was not declared in this scope PHYSFS_stat(full_path.c_str(), &statbuf); ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:89:44: error: ‘PHYSFS_stat’ was not declared in this scope PHYSFS_stat(full_path.c_str(), &statbuf); ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:90:28: error: ‘PHYSFS_FILETYPE_DIRECTORY’ was not declared in this scope if(statbuf.filetype == PHYSFS_FILETYPE_DIRECTORY) ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp: In function ‘void {anonymous}::remove_from_dictionary_path(void*, const char*, const char*)’: /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:100:5: error: ‘PHYSFS_Stat’ was not declared in this scope PHYSFS_Stat statbuf; ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:101:37: error: ‘statbuf’ was not declared in this scope PHYSFS_stat(full_path.c_str(), &statbuf); ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:101:44: error: ‘PHYSFS_stat’ was not declared in this scope PHYSFS_stat(full_path.c_str(), &statbuf); ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:102:28: error: ‘PHYSFS_FILETYPE_DIRECTORY’ was not declared in this scope if(statbuf.filetype == PHYSFS_FILETYPE_DIRECTORY) ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp: In member function ‘void AddonManager::disable_addon(const AddonId&)’: /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:470:60: error: ‘PHYSFS_unmount’ was not declared in this scope if (PHYSFS_unmount(addon.get_install_filename().c_str()) == 0) ^ /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp: In member function ‘void AddonManager::add_installed_archive(const string&, const string&)’: /home/colin/abs/supertux-git/src/supertux/src/addon/addon_manager.cpp:576:35: error: ‘PHYSFS_unmount’ was not declared in this scope PHYSFS_unmount(os_path.c_str()); ^ CMakeFiles/supertux2_lib.dir/build.make:87: recipe for target 'CMakeFiles/supertux2_lib.dir/src/addon/addon_manager.cpp.o' failed make[2]: *** [CMakeFiles/supertux2_lib.dir/src/addon/addon_manager.cpp.o] Error 1 CMakeFiles/Makefile2:256: recipe for target 'CMakeFiles/supertux2_lib.dir/all' failed make[1]: *** [CMakeFiles/supertux2_lib.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... Can anyone build it?

gennmaiko commented on 2016-04-26 15:31 (UTC)

That problem solved by doing "yaourt -S supertux-git" today. Thanks :)

gennmaiko commented on 2016-04-25 16:43 (UTC)

gennmaiko ~ $ supertux2 [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples [WARNING] /tmp/yaourt-tmp-gennmaiko/aur-supertux-git/src/supertux/src/audio/sound_manager.cpp:175 Error while preloading sound file: read error while reading samples Segmentation fault (Core dump) How to fix this? Any advance thanks.

gennmaiko commented on 2016-02-04 08:48 (UTC)

--- PKGBUILD 2015-06-10 08:38:40.000000000 +0900 +++ PKGBUILD.fixed 2016-02-04 17:43:28.536592343 +0900 @@ -23,7 +23,7 @@ prepare() { cd supertux - + git submodule update --init --recursive sed -i '/curl\/types.h/d' src/addon/addon_manager.cpp sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp }

mensinda commented on 2015-09-28 09:44 (UTC)

Supertux requires another submodule: https://github.com/SuperTux/squirrel Patch for both submodules: https://gist.github.com/mensinda/531a9a3c21d05a850e49

mensinda commented on 2015-08-12 09:51 (UTC)

Supertux uses the submodule https://github.com/tinygettext/tinygettext. It fails to build without it.

chenxiaolong commented on 2015-03-27 02:18 (UTC)

@ids1024: Fixed, thank you!

ids1024 commented on 2015-03-24 04:13 (UTC)

The repository has been moved to github due to Google code closing. https://github.com/SuperTux/supertux

Sality commented on 2014-11-06 19:18 (UTC)

... -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Configuring incomplete, errors occurred! See also "/tmp/yaourt-tmp-nout/aur-supertux-git/src/supertux/CMakeFiles/CMakeOutput.log". See also "/tmp/yaourt-tmp-nout/aur-supertux-git/src/supertux/CMakeFiles/CMakeError.log". ==> ОШИБКА: Произошел сбой в build(). Преждевременный выход... ==> ERROR: Makepkg was unable to build supertux-git. ==> Restart building supertux-git ? [y/N]

ids1024 commented on 2014-08-03 17:55 (UTC)

The homepage should be http://supertux.lethargik.org/.

ids1024 commented on 2014-08-03 15:48 (UTC)

Supertux has been ported to sdl2. The sdl_image dependency should be replaced with sdl2_image.

chenxiaolong commented on 2013-04-11 22:57 (UTC)

The new PKGBUILD has a new versioning scheme. Please manually update to the latest version.

chenxiaolong commented on 2013-03-05 22:22 (UTC)

@haagch: Ooops...fixed :)

haagch commented on 2013-03-05 17:24 (UTC)

It still says "==> Connecting to SVN server...." but it's just the message. :)

chenxiaolong commented on 2012-02-16 21:19 (UTC)

@matthiaskrgr: Thanks! I've created the supertux-git package and I'll ask on the mailing list to have supertux-svn merged into it.

matthiaskrgr commented on 2012-02-16 18:47 (UTC)

Hey, can you update this to a -git pkgbuild? This is what I got so far: http://pastebin.com/h4dFm8aQ (link expires in 30 days)

chenxiaolong commented on 2011-12-31 05:36 (UTC)

@acrox999: That's okay, I don't mind maintaining the package :D

hzu commented on 2011-12-31 03:47 (UTC)

Nah, I don't have much time now. And after my PC blew up few weeks ago, I still haven't install Arch on my PC. And thanks for the info. :)

chenxiaolong commented on 2011-12-30 19:46 (UTC)

@acrox999: Makepkg automatically fetches the latest rev regardless of what pkgver is set to :) Oh yeah, if you like to maintain the package again, I'd be glad to disown it. @Cravix: Done :)

Cravix commented on 2011-11-23 10:41 (UTC)

I think it's better to move the package "glew" from the "makedepends" group to the "depends" group, for supertux can't be launched without it installed; )

hzu commented on 2011-11-18 12:54 (UTC)

Done. :) Also, is there any way we can make it fetch the latest rev without the need to update the PKGBUILD everytime a new rev is commited?

chenxiaolong commented on 2011-11-17 21:24 (UTC)

@acrox999: Would you mind changing the version to an SVN revision number rather than a date? When installing a *-svn package, makepkg replaces the version with the SVN revision (currently 6694), but yaourt keeps trying to update this package because 20111113 is a lot bigger than 6694 :)

hzu commented on 2011-11-13 10:26 (UTC)

Sorry, updated the PKGBUILD again. One dependency was missing.

hzu commented on 2011-11-13 10:02 (UTC)

Updated the PKGBUILD. Credits goes to chenxiaolong.

chenxiaolong commented on 2011-08-07 15:14 (UTC)

Please change the cmake line to: cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin . That fixes the path issue. Also, please add before the cmake line: sed -i '/curl\/types.h/d' src/addon/addon_manager.cpp sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp That fixes the compilation issues. Both lines were taken from the official PKGBUILD. Fixed PKGBUILD: http://pastebin.com/YHVRempG