2 # Contributor: thoughtcrime
8 pkgdesc="Development version of the level editor, also known as ZeroRadiant"
10 url="http://www.qeradiant.com/cgi-bin/trac.cgi/wiki/ZeroRadiant"
11 license=('GPL' 'BSD' 'LGPL')
13 depends=('gtk2' 'gtkglext>=1.0.0' 'libxml2>=2.0.0' 'zlib>=1.2.0' 'libpng>=1.2.0' 'mhash>=0.9.0')
14 makedepends=('subversion' 'scons>=0.96' 'python>=2.3.0')
15 optdepends=('gtkradiant-gamepack-urt-svn: Urban Terror game pack')
16 provides=('gtkradiant')
17 conflicts=('gtkradiant')
22 source=('gtkradiant.sh' 'gtkradiant.desktop' 'gtkradiant.png')
24 md5sums=('9f8a741b16d87f97488dfc61c11ceca7'
25 '3314f51c060e142bffa0a9c40a4d8e48'
26 'ee89404891c2fbca799f083efb05e6fd')
29 _svntrunk=https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk
35 if [ -d $_svnmod/.svn ]; then
36 (cd $_svnmod && svn up -r $pkgver)
38 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
41 msg "SVN checkout done or server timeout"
42 msg "Starting scons..."
44 rm -rf "$srcdir/$_svnmod-build"
45 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
46 cd "$srcdir/$_svnmod-build"
55 install -d "$pkgdir/usr/share/"
56 cp "$srcdir/$_svnmod-build/install/" "$pkgdir/usr/share/gtkradiant/" -r
59 # Remove all .svn directories
61 find . -type d -name .svn -print0 | xargs -0 rm -r
63 # Remove the games directory, the launch script
64 # links it to the home directory. Read it for more
66 rm "$pkgdir/usr/share/gtkradiant/games" -r
68 # Copy the launch script
69 install -Dm755 "$srcdir/gtkradiant.sh" "$pkgdir/usr/bin/gtkradiant"
71 # Copy the menu shortcut and icon
72 install -Dm644 $srcdir/gtkradiant.desktop $pkgdir/usr/share/applications/gtkradiant.desktop
73 install -Dm644 $srcdir/gtkradiant.png $pkgdir/usr/share/pixmaps/gtkradiant.png