1 # Contributor: Michael Basil <michael@ashtonbrsc.co.uk>
2 pkgname=google-appengine-wx-launcher-svn
5 pkgdesc="GUI launcher for Google App Engine"
7 url="http://code.google.com/p/google-appengine-wx-launcher/"
10 depends=(google-appengine-python wxpython)
11 makedepends=(subversion)
19 source=(profile.google-appengine-wx-launcher-svn google-appengine-wx-launcher-svn.desktop google-appengine-wx-launcher-svn.install)
21 md5sums=('c0711ab5c0bf70394c849e4852e2d533'
22 '0c19d1e5e427e3fadcec2f15facedfb0'
23 'd3769cb6770948ae753edcefb8938377')
25 _svntrunk=http://google-appengine-wx-launcher.googlecode.com/svn/trunk/
26 _svnmod=google-appengine-wx-launcher-svn
29 msg "Starting SVN checkout..."
31 if [ -d $_svnmod/.svn ]; then
32 (cd $_svnmod && svn up -r $pkgver)
34 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
36 msg "SVN checkout done or server timeout"
38 chmod +x google-appengine-wx-launcher-svn/GoogleAppEngineLauncher.py
41 mkdir -p $pkgdir/{usr/{bin,share/{applications,pixmaps}},opt} || return 1
42 cp -R ${pkgname}/ "$startdir/pkg/opt/$pkgname"
43 find ${pkgdir} -name ".svn" -type d -exec rm -fr {} +
45 install -D -m755 profile.google-appengine-wx-launcher-svn "$startdir/pkg/etc/profile.d/google-appengine-wx-launcher-svn.sh"
46 install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/ || return 1
47 install -m644 $srcdir/$pkgname/images/AppEngine.png $pkgdir/usr/share/pixmaps/${pkgname}-icon.png || return 1