updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / google-appengine-wx-launcher-svn / PKGBUILD
blobe381ce61ae75b3480922e36e0ff63f34f139baf4
1 # Contributor: Michael Basil <michael@ashtonbrsc.co.uk>
2 pkgname=google-appengine-wx-launcher-svn
3 pkgver=7
4 pkgrel=1
5 pkgdesc="GUI launcher for Google App Engine"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/google-appengine-wx-launcher/"
8 license=('Apache')
9 groups=()
10 depends=(google-appengine-python wxpython)
11 makedepends=(subversion)
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 source=(profile.google-appengine-wx-launcher-svn google-appengine-wx-launcher-svn.desktop google-appengine-wx-launcher-svn.install)
20 noextract=()
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
28 build() {
29 msg "Starting SVN checkout..."
30   cd ${srcdir}
31     if [ -d $_svnmod/.svn ]; then
32       (cd $_svnmod && svn up -r $pkgver)
33     else
34       svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
35     fi
36 msg "SVN checkout done or server timeout"
38 chmod +x google-appengine-wx-launcher-svn/GoogleAppEngineLauncher.py
40 cd "$startdir/src"
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