Package Details: stratagus 2.4.3-2

Git Clone URL: https://aur.archlinux.org/stratagus.git (read-only, click to copy)
Package Base: stratagus
Description: A free cross-platform real-time strategy gaming engine
Upstream URL: https://github.com/Wargus/stratagus
Licenses: GPL
Submitter: encelo
Maintainer: encelo
Last Packager: encelo
Votes: 26
Popularity: 0.000000
First Submitted: 2005-05-11 02:54
Last Updated: 2020-08-30 12:36

Latest Comments

« First ‹ Previous 1 2 3 4

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:
https://docs.google.com/open?id=0B_FQtIHEHNn8d214Nkgzam9JaEU

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 <encelo@users.sourceforge.net>
pkgname=stratagus
pkgver=2.2.6
pkgrel=1
pkgdesc="A free cross-platform real-time strategy gaming engine"
arch=('i686' 'x86_64')
url="https://launchpad.net/stratagus"
license=('GPL')
depends=('gcc-libs' 'bzip2' 'libgl' 'sdl' 'libpng' 'libmng' 'libvorbis' 'libtheora'
'libmikmod' 'lua' 'toluapp')
makedepends=('cmake')
source=(http://launchpad.net/stratagus/trunk/$pkgver/+download/stratagus_$pkgver.orig.tar.gz)
md5sums=('1b5485f3d5acd3bc1b7e6a90bb1d38b3')


build() {
cd $srcdir
mkdir build
cd build

cmake ../${pkgname}_$pkgver.orig \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
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 <encelo@users.sourceforge.net>
pkgname=stratagus
pkgver=2.2.6
pkgrel=1
pkgdesc="A free cross-platform real-time strategy gaming engine"
arch=('i686' 'x86_64')
url="https://launchpad.net/stratagus"
license=('GPL')
depends=('gcc-libs' 'bzip2' 'libgl' 'sdl' 'libpng' 'libmng' 'libvorbis' 'libtheora' 'libmikmod' 'lua' 'toluapp')
makedepends=('cmake')
source=(http://launchpad.net/stratagus/trunk/$pkgver/+download/stratagus_$pkgver.orig.tar.gz)
md5sums=('1b5485f3d5acd3bc1b7e6a90bb1d38b3')


build() {
cd $srcdir
mkdir build
cd build

cmake ../${pkgname}_$pkgver.orig \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}

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

Anonymous comment on 2011-02-28 03:52

COMPILATION ERROR


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.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/lto-wrapper
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 --with-plugin-ld=ld.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)


COMPILATION ERROR

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 2.2.5.5
- 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:
http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz