1 # Contributor: flixie <69one@gmx.net>
2 # Maintainer: Davorin Učakar <davorin.ucakar@gmail.com>
7 pkgdesc="Level editor for Doom 3, Nexuiz, Quake 4, Tremulous, Warsow etc..."
9 url="http://www.qeradiant.com/"
11 depends=('gtk2' 'gtkglext' 'libxml2' 'zlib' 'libpng' 'mhash' 'python')
12 makedepends=('subversion' 'scons')
18 _svnurl=https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/tags/1.5-release
23 svn --config-dir svn co $_svnurl gtkradiant
25 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/WarsowPack/trunk/ gtkradiant/games/WarsowPack
26 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/DarkPlacesPack/trunk/ gtkradiant/games/DarkPlacesPack
27 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Doom3Pack/trunk/ gtkradiant/games/Doom3Pack
28 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/ETPack/trunk/ gtkradiant/games/ETPack
29 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/NexuizPack/trunk/ gtkradiant/games/NexuizPack
30 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q1Pack/trunk/ gtkradiant/games/Q1Pack
31 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q2Pack/trunk/ gtkradiant/games/Q2Pack
32 svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ gtkradiant/games/Q3Pack -r 10
33 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Rad_Manual/trunk/ gtkradiant/games/Q3Rad_Manual
34 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q4Pack/trunk/ gtkradiant/games/Q4Pack
35 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/TremulousPack/trunk/ gtkradiant/games/TremulousPack
36 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/trunk/ gtkradiant/games/UFOAIPack
37 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/WolfPack/trunk/ gtkradiant/games/WolfPack
38 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/HalfLifePack/trunk/ gtkradiant/games/HalfLifePack
39 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Her2Pack/trunk/ gtkradiant/games/Her2Pack
40 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/JAPack/trunk/ gtkradiant/games/JAPack
41 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/JK2Pack/trunk/ gtkradiant/games/JK2Pack
42 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/RavenPack/trunk/ gtkradiant/games/RavenPack
43 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/STVEFPack/trunk/ gtkradiant/games/STVEFPack
44 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/Sof2Pack/trunk/ gtkradiant/games/Sof2Pack
45 #svn --config-dir svn co https://zerowing.idsoftware.com/svn/radiant.gamepacks/PreyPack/trunk/ gtkradiant/games/PreyPack
47 msg "SVN checkout done or server timeout"
48 msg "Starting make..."
52 sed -i '2648s/(GLvoid)/(void)/g' include/igl.h || return 1
53 sed -i '116s/^.*$//' install.py || return 1
55 scons SETUP=0 BUILD=release || return 1
56 python install.py || return 1
58 mkdir -p $startdir/pkg/usr/share/gtkradiant
59 mkdir -p $startdir/pkg/usr/bin
61 install -D -m 644 $startdir/gtkradiant.desktop $startdir/pkg/usr/share/applications/gtkradiant.desktop
62 install -D -m 644 $startdir/gtkradiant.png $startdir/pkg/usr/share/pixmaps/gtkradiant.png
64 cp -r install/* $startdir/pkg/usr/share/gtkradiant/
65 ln -sf /usr/share/gtkradiant/radiant.x86 $startdir/pkg/usr/bin/radiant