1 # Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
2 pkgname=ozi2geotiff-svn
5 pkgdesc="convert maps from Ozi Explorer format to GeoTiff"
7 url="http://sourceforge.net/projects/ozi2geotiff/"
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
23 if [ -d $_svnmod/.svn ]; then
24 (cd $_svnmod && svn up -r $pkgver)
26 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
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')