@FFY00 : I adopted this PKGBUILD. I cleaned it up a little following your comment :)
Search Criteria
Package Details: supertux-git 0.6.3.r1599.g6f1078d10-1
Package Actions
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: | https://www.supertux.org |
Licenses: | GPL-3.0-only |
Conflicts: | supertux |
Provides: | supertux |
Submitter: | chenxiaolong |
Maintainer: | tulpenkiste |
Last Packager: | tulpenkiste |
Votes: | 14 |
Popularity: | 0.000000 |
First Submitted: | 2012-02-16 21:18 (UTC) |
Last Updated: | 2025-02-21 20:29 (UTC) |
Dependencies (16)
- boost-libs
- curl (curl-gitAUR, curl-c-aresAUR)
- glew (glew-libepoxyAUR, glew-wayland-gitAUR, glew-gitAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- libraqm (libraqm-gitAUR)
- libvorbis (libvorbis-aotuvAUR, libvorbis-aotuv-lancerAUR, libvorbis-gitAUR)
- openal (openal-gitAUR)
- physfs (physfs-gitAUR)
- sdl2_image
- squirrelAUR
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR, cmake3AUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- glm (glm-gitAUR) (make)
- arrpcAUR (arrpc-gitAUR) (optional) – Unofficial Discord client Rich Presence integration
- discord (discord-electron-openasar-gitAUR, discord-electron-openasarAUR, discord_arch_electronAUR) (optional) – Discord Rich Presence integration
Required by (0)
Sources (1)
FredBezies commented on 2018-06-03 09:19 (UTC) (edited on 2018-06-03 09:37 (UTC) by FredBezies)
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
}
Pinned Comments
tulpenkiste commented on 2025-02-21 20:33 (UTC) (edited on 2025-02-21 20:34 (UTC) by tulpenkiste)
Works with the
Ninja
CMake generator now (waited for a fix to be merged upstream before adding due to buffer overflows). Also changed to have discord integration compiled in.