updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / ozi2geotiff-svn / PKGBUILD
blobe63753ffebd0adfa96064199295594a480cc50b1
1 # Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
2 pkgname=ozi2geotiff-svn
3 pkgver=6
4 pkgrel=2
5 pkgdesc="convert maps from Ozi Explorer format to GeoTiff"
6 arch=(any)
7 url="http://sourceforge.net/projects/ozi2geotiff/"
8 license=('GPL')
9 depends=('python2' 'gdal' 'libgeotiff' 'imagemagick')
10 makedepends=('subversion')
11 optdepends=('gpsbabel: for run ozi2gpx script converter')
12 provides=(ozi2geotiff)
13 conflicts=(ozi2geotiff)
14 replaces=(ozi2geotiff)
15 source=(ozi2geotiff ozi2gpx)
17 _svntrunk=https://ozi2geotiff.svn.sourceforge.net/svnroot/ozi2geotiff/trunk
18 _svnmod=ozi2geotiff-svn
20 build() {
21   cd "$srcdir"
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r $pkgver)
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
29   msg "SVN checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_svnmod-build"
33   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34   cd "$srcdir/$_svnmod-build"
36   install -m 755 -o root -g root -D ${srcdir}/ozi2geotiff ${pkgdir}/usr/bin/ozi2geotiff
37   install -m 755 -o root -g root -D ${srcdir}/ozi2gpx     ${pkgdir}/usr/bin/ozi2gpx
38   install -m 755 -o root -g root -D ozi2geotiff.py        ${pkgdir}/usr/lib/ozi2geotiff/ozi2geotiff.py
40 md5sums=('4e4630eb0070fed8cd85117d6dcc788b'
41          '3c374793a2e19383ea6066b278eefd77')