updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / gmapcatcher-svn / PKGBUILD
blob7a0557a22a6656876a4979930fc2fbe09902244b
1 pkgname=gmapcatcher-svn
2 pkgver=643
3 pkgrel=4
4 pkgdesc="GMapCatcher is an offline maps viewer"
5 arch=(any)
6 url="http://code.google.com/p/gmapcatcher"
7 license=('GPL2')
8 depends=('python' 'pygtk' 'gtk2' 'pycairo' 'pygobject')
9 makedepends=(subversion)
10 provides=(gmapcatcher)
11 source=('gmapcatcher.desktop' 'gmapcatcher.png')
12 md5sums=('2da3b301f56c0303ba8d67e45ea44019' 'bc0ce84192f1a60087662310c24cab8f') 
14 _svntrunk="http://gmapcatcher.googlecode.com/svn/trunk"
15 _svnmod=gmapcatcher
17 build() {
18 mkdir -p $pkgdir/usr/bin
19 mkdir -p $pkgdir/usr/share/pixmaps
20 mkdir -p $pkgdir/opt
21 mkdir -p $pkgdir/usr/share/applications
22 cd $srcdir
23 msg "Connecting to SVN server...."
24 svn checkout http://gmapcatcher.googlecode.com/svn/trunk gmapcatcher
25 msg "SVN checkout done or server timeout"
26 svn export gmapcatcher $pkgdir/usr/share/gmapcatcher
27 rm -r $pkgdir/usr/share/gmapcatcher/{common,installer} 
28 ln -s "/usr/share/gmapcatcher/maps.py" $pkgdir/usr/bin/gmapcatcher
29 ln -s "/usr/share/gmapcatcher/download.py" $pkgdir/usr/bin/gmapcatcher-download
30 cp $startdir/gmapcatcher.desktop $pkgdir/usr/share/applications/gmapcatcher.desktop
31 chmod +x $pkgdir/usr/share/applications/gmapcatcher.desktop
32 cp $startdir/gmapcatcher.png $pkgdir/usr/share/pixmaps