updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / streetview-explorer-svn / PKGBUILD
blob989532f2ae710efcfd39b3d1d57cafe054bbea6a
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=streetview-explorer
4 pkgname=$_pkg-svn
5 pkgver=65
6 pkgrel=1
7 pkgdesc="View StreetView imagery in 3D"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/streetview-explorer/"
10 license=('custom:WTFPL')
11 depends=('wxgtk' 'curl' 'glew')
12 makedepends=('subversion')
13 provides=("$_pkg")
14 conflicts=("$_pkg")
15 install="$pkgname.install"
16 source=("http://code.google.com/p/streetview-explorer/logo"
17         "http://sam.zoy.org/wtfpl/COPYING"
18         "$_pkg.desktop")
19 md5sums=('6dc8cc05999a19de43ade9a78e7ffb30'
20          '389a9e29629d1f05e115f8f05c283df5'
21          '23fbd334278670a023887d50391acd72')
23 _svntrunk="http://streetview-explorer.googlecode.com/svn/trunk/src"
24 _svnmod="$_pkg"
26 build() {
27   cd "$srcdir"
29   if [ -d $_svnmod/.svn ]; then
30     (cd $_svnmod && svn up -r $pkgver)
31   else
32     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33   fi
35   msg "SVN checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_svnmod-build"
39   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
40   cd "$srcdir/$_svnmod-build"
42   #
43   # BUILD
44   #
46   make
49 package() {
50   cd "$srcdir/$_svnmod-build"
52   # bin
53   install -Dm755 $_pkg "$pkgdir/usr/bin/$_pkg"
55   # desktop file
56   install -Dm644 ../$_pkg.desktop \
57           "$pkgdir/usr/share/applications/$_pkg.desktop"
59   # icon
60   install -Dm644 ../logo \
61           "$pkgdir/usr/share/pixmaps/$_pkg.png"
63   # license
64   install -Dm644 ../COPYING \
65           "$pkgdir/usr/share/licenses/$_pkg/COPYING"