Package Details: stratagus 2.4.1-1

Git Clone URL: (read-only)
Package Base: stratagus
Description: A free cross-platform real-time strategy gaming engine
Upstream URL:
Licenses: GPL
Submitter: encelo
Maintainer: encelo
Last Packager: encelo
Votes: 26
Popularity: 0.060877
First Submitted: 2005-05-11 02:54
Last Updated: 2017-06-07 21:03

Latest Comments

encelo commented on 2017-06-07 21:03

Updated to 2.4.1

netz commented on 2016-08-05 16:02

Because it isn't:

AnbuBlack commented on 2016-08-05 12:11

Why is flagged when the last verrsion in 2.3.0?

encelo commented on 2015-04-08 22:03

Updated to 2.3.0

encelo commented on 2014-06-15 12:10

- makedepends array updated for tolua++
- Installation of stratagus-game-launcher.h moved to the package() function

salviati commented on 2014-05-01 08:54

mkdir: cannot create directory ‘/tmp/yaourt-tmp-user/aur-stratagus/pkg’: Permission denied

Samsagax commented on 2013-11-09 23:54

You need to change
toluapp -> tolua++
in the makedepends array.

chadberg commented on 2013-06-22 19:47

Had a hard time getting this to build until I put the lines "mkdir -p ${pkgdir}/usr/include
cp ${srcdir}/${pkgname}_$pkgver.orig/gameheaders/stratagus-game-launcher.h ${pkgdir}/usr/include" into the package section instead of the build section. Otherwise the directories were created first and causing problems during the make install.

encelo commented on 2013-06-03 18:40

Added SBINDIR definition to CMake build command, thanks Thaodan.

Thaodan commented on 2013-06-03 13:15

fix for bin move see:

Thaodan commented on 2013-06-03 12:48

please fix bin move stuff: see latest news.

encelo commented on 2013-03-24 21:07

Updated to compile with lua51.
Thanks to Thaodan.

Thaodan commented on 2013-03-23 17:37

Please add -DLUA_INCLUDE_DIR=/usr/include/lua5.1 and change the depency lua to lua51 to fix the compile issues. My fixed PKGBUILD:

Thaodan commented on 2013-03-23 17:13

you may add -DGAMEDIR=/usr/bin to your PKGBUILD, with this you don't have to move stratagus from /usr/games to /usr/bin

aphirst commented on 2013-03-23 15:15

I've noticed that this won't build if I have lua and lua51 both installed, but that if I remove lua temporarily (and change the depends array to say lua51 rather than lua) it builds just fine.

Is this something worth reporting anywhere upstream, or is it something that could be fixed meaningfully in the PKGBUILD by the maintainer?

Anonymous comment on 2012-12-19 07:48

Okay hopefully we can get it fixed thanks for responding. I replied on the wargus page about flagging the package by the way.

Thaodan commented on 2012-12-18 23:26

I think its an upstream issue, we need to fix it until I can fix wargus.

Thaodan commented on 2012-12-18 23:01

This package is not out of date, it need some changes but its actual please mark only packages out of date that are out of date.

Anonymous comment on 2012-12-18 22:52

It currently won't build with lua 5.2

error: ‘LUA_GLOBALSINDEX’ was not declared in this scope

Needs an update to the PKGBUILD.

encelo commented on 2012-09-01 13:28

Updated to 2.2.7

Thaodan commented on 2012-08-31 15:17

Updated it cause its needed as depency for wargus:

encelo commented on 2011-12-27 15:12

Updated to 2.2.6

Xaseron commented on 2011-12-27 01:42

@alrua i modified your PKGBUILD, because the executable should be in /usr/bin and not in /usr/games (its not in the default path)
and the headerfile should be installed as well, because its needed for building wargus

# Contributor: Angelo Theodorou <>
pkgdesc="A free cross-platform real-time strategy gaming engine"
arch=('i686' 'x86_64')
depends=('gcc-libs' 'bzip2' 'libgl' 'sdl' 'libpng' 'libmng' 'libvorbis' 'libtheora'
'libmikmod' 'lua' 'toluapp')

build() {
cd $srcdir
mkdir build
cd build

cmake ../${pkgname}_$pkgver.orig \
make || return 1

mkdir -p ${pkgdir}/usr/include
cp ${srcdir}/${pkgname}_$pkgver.orig/gameheaders/stratagus-game-launcher.h ${pkgdir}/usr/include

package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
mv ${pkgdir}/usr/games/stratagus ${pkgdir}/usr/bin
rmdir ${pkgdir}/usr/games

tohojo commented on 2011-12-26 01:48

This PKGBUILD seems to work for version 2.2.6:

# Contributor: Angelo Theodorou <>
pkgdesc="A free cross-platform real-time strategy gaming engine"
arch=('i686' 'x86_64')
depends=('gcc-libs' 'bzip2' 'libgl' 'sdl' 'libpng' 'libmng' 'libvorbis' 'libtheora' 'libmikmod' 'lua' 'toluapp')

build() {
cd $srcdir
mkdir build
cd build

cmake ../${pkgname}_$pkgver.orig \

package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install

Anonymous comment on 2011-02-28 03:52


user$ uname -a
Linux localhost 2.6.37-ARCH #1 SMP PREEMPT Mon Feb 21 11:37:52 UTC 2011 x86_64 Genuine Intel(R) CPU 2160 @ 1.80GHz GenuineIntel GNU/Linux
user$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.5-20110127/configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --enable-gold --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --with-cloog-include=/usr/include/cloog-ppl --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
Thread model: posix
gcc version 4.5.2 20110127 (prerelease) (GCC)


g++ -c -DHAVE_CONFIG_H -DUSE_BZ2LIB -DUSE_VORBIS -DUSE_THEORA -DUSE_MIKMOD -pthread -D_REENTRANT -DUSE_MNG -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_ZLIB -I. -I./src/include -I./src/guichan/include -DSTRATAGUS_LIB_PATH="\".\"" -march=native -O2 -pipe -O2 -pipe -pedantic -fsigned-char -fomit-frame-pointer -fexpensive-optimizations -ffast-math src/particle/staticparticle.cpp -o src/particle/obj/staticparticle.o
g++ -o stratagus src/action/obj/action_attack.o src/action/obj/action_board.o src/action/obj/action_build.o src/action/obj/action_die.o src/action/obj/action_follow.o src/action/obj/action_move.o src/action/obj/action_patrol.o src/action/obj/action_repair.o src/action/obj/action_research.o src/action/obj/action_resource.o src/action/obj/action_returngoods.o src/action/obj/action_spellcast.o src/action/obj/action_stand.o src/action/obj/action_still.o src/action/obj/action_train.o src/action/obj/action_unload.o src/action/obj/action_upgradeto.o src/action/obj/actions.o src/action/obj/command.o src/ai/obj/ai.o src/ai/obj/ai_building.o src/ai/obj/ai_force.o src/ai/obj/ai_magic.o src/ai/obj/ai_plan.o src/ai/obj/ai_resource.o src/ai/obj/script_ai.o src/beos/obj/beos.o src/editor/obj/script_editor.o src/editor/obj/editloop.o src/editor/obj/editor.o src/editor/obj/edmap.o src/game/obj/game.o src/game/obj/loadgame.o src/game/obj/savegame.o src/game/obj/trigger.o src/game/obj/replay.o src/guichan/obj/cliprectangle.o src/guichan/obj/color.o src/guichan/obj/defaultfont.o src/guichan/obj/exception.o src/guichan/obj/focushandler.o src/guichan/obj/gfont.o src/guichan/obj/graphics.o src/guichan/obj/gui.o src/guichan/obj/guichan.o src/guichan/obj/image.o src/guichan/obj/imagefont.o src/guichan/obj/key.o src/guichan/obj/keyinput.o src/guichan/obj/mouseinput.o src/guichan/obj/rectangle.o src/guichan/sdl/obj/gsdl.o src/guichan/sdl/obj/sdlgraphics.o src/guichan/sdl/obj/sdlimageloader.o src/guichan/sdl/obj/sdlinput.o src/guichan/obj/widget.o src/guichan/widgets/obj/button.o src/guichan/widgets/obj/checkbox.o src/guichan/widgets/obj/container.o src/guichan/widgets/obj/dropdown.o src/guichan/widgets/obj/icon.o src/guichan/widgets/obj/label.o src/guichan/widgets/obj/listbox.o src/guichan/widgets/obj/radiobutton.o src/guichan/widgets/obj/scrollarea.o src/guichan/widgets/obj/slider.o src/guichan/widgets/obj/textbox.o src/guichan/widgets/obj/textfield.o src/guichan/widgets/obj/window.o src/map/obj/script_map.o src/map/obj/script_tileset.o src/map/obj/map.o src/map/obj/map_draw.o src/map/obj/map_fog.o src/map/obj/map_radar.o src/map/obj/map_save.o src/map/obj/map_wall.o src/map/obj/minimap.o src/map/obj/tileset.o src/network/obj/commands.o src/network/obj/lowlevel.o src/network/obj/master.o src/network/obj/netconnect.o src/network/obj/network.o src/pathfinder/obj/astar.o src/pathfinder/obj/script_pathfinder.o src/pathfinder/obj/pathfinder.o src/sound/obj/script_sound.o src/sound/obj/mikmod.o src/sound/obj/music.o src/sound/obj/ogg.o src/sound/obj/sound.o src/sound/obj/sound_id.o src/sound/obj/sound_server.o src/sound/obj/unitsound.o src/sound/obj/wav.o src/stratagus/obj/construct.o src/stratagus/obj/groups.o src/stratagus/obj/iolib.o src/stratagus/obj/mainloop.o src/stratagus/obj/missile.o src/stratagus/obj/player.o src/stratagus/obj/script.o src/stratagus/obj/script_missile.o src/stratagus/obj/script_player.o src/stratagus/obj/script_spell.o src/stratagus/obj/selection.o src/stratagus/obj/spells.o src/stratagus/obj/stratagus.o src/stratagus/obj/translate.o src/stratagus/obj/util.o src/stratagus/obj/luacallback.o src/stratagus/obj/title.o src/tolua/obj/tolua.o src/tolua/obj/tolua_event.o src/tolua/obj/tolua_is.o src/tolua/obj/tolua_map.o src/tolua/obj/tolua_push.o src/tolua/obj/tolua_to.o src/ui/obj/botpanel.o src/ui/obj/button_checks.o src/ui/obj/script_ui.o src/ui/obj/icons.o src/ui/obj/interface.o src/ui/obj/mainscr.o src/ui/obj/menu_proc.o src/ui/obj/menus.o src/ui/obj/mouse.o src/ui/obj/ui.o src/ui/obj/widgets.o src/unit/obj/depend.o src/unit/obj/script_unit.o src/unit/obj/script_unittype.o src/unit/obj/unit.o src/unit/obj/unit_cache.o src/unit/obj/unit_draw.o src/unit/obj/unit_find.o src/unit/obj/unittype.o src/unit/obj/upgrade.o src/unit/obj/unit_manager.o src/unit/obj/unit_save.o src/unit/obj/build.o src/video/obj/cursor.o src/video/obj/font.o src/video/obj/graphic.o src/video/obj/linedraw.o src/video/obj/mng.o src/video/obj/movie.o src/video/obj/png.o src/video/obj/sdl.o src/video/obj/sprite.o src/video/obj/video.o src/particle/obj/chunkparticle.o src/particle/obj/graphicanimation.o src/particle/obj/particlemanager.o src/particle/obj/smokeparticle.o src/particle/obj/staticparticle.o -march=native -O2 -pipe -O2 -pipe -pedantic -fsigned-char -fomit-frame-pointer -fexpensive-optimizations -ffast-math -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib -L/usr/bin -lX11 -lGL -lbz2 -lvorbis -logg -ltheora -logg -L/usr/lib -lmikmod -ldl -lmng -L/usr/lib -lSDL -lpthread -ldl -llua -lGL -llua -lGL -lpng -lz -lm
g++: src/action/obj/action_attack.o: No such file or directory
g++: src/action/obj/action_board.o: No such file or directory
g++: src/action/obj/action_build.o: No such file or directory
g++: src/action/obj/action_die.o: No such file or directory
g++: src/action/obj/action_follow.o: No such file or directory
g++: src/action/obj/action_move.o: No such file or directory
g++: src/action/obj/action_patrol.o: No such file or directory
g++: src/action/obj/action_repair.o: No such file or directory
g++: src/action/obj/action_research.o: No such file or directory
g++: src/action/obj/action_resource.o: No such file or directory
g++: src/action/obj/action_returngoods.o: No such file or directory
g++: src/action/obj/action_spellcast.o: No such file or directory
g++: src/action/obj/action_stand.o: No such file or directory
g++: src/action/obj/action_still.o: No such file or directory
g++: src/action/obj/action_train.o: No such file or directory
g++: src/action/obj/action_unload.o: No such file or directory
g++: src/action/obj/action_upgradeto.o: No such file or directory
g++: src/action/obj/actions.o: No such file or directory
g++: src/action/obj/command.o: No such file or directory
g++: src/ai/obj/ai.o: No such file or directory
g++: src/ai/obj/ai_building.o: No such file or directory
g++: src/ai/obj/ai_force.o: No such file or directory
g++: src/ai/obj/ai_magic.o: No such file or directory
g++: src/ai/obj/ai_plan.o: No such file or directory
g++: src/ai/obj/ai_resource.o: No such file or directory
g++: src/ai/obj/script_ai.o: No such file or directory
make: *** [stratagus] Помилка 1

encelo commented on 2010-12-08 16:40

- Updated to
- URL, source and dependencies updated
- Removed compatibility patches

Anonymous comment on 2010-12-04 23:25

Work on this project appears to have resumed. The official page lists a move to launchpad and announces v2.2.5.5

Anonymous comment on 2010-06-05 15:39

dl link does not work. use this one:$pkgname/$pkgname-$pkgver-src.tar.gz