summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37cb9a19575a9fd1ddb48455a2a9f23da45ec2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=pbf2osm-git
pkgver=20120318
pkgrel=1
pkgdesc="tool to convert pbf to osm"
arch=('x86_64' 'i686')
url="http://git.openstreetmap.nl/index.cgi/pbf2osm.git/"
license=('GPL')
depends=('protobuf-c' 'bzip2')
makedepends=('git')

_gitroot="http://git.openstreet.nl/pbf2osm.git"
_gitname="pbf2osm"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
  fi

  cd $_gitname
  git submodule init
  git submodule update

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  cd src
  make
} 

package() {
  install -Dm755 $srcdir/pbf2osm/src/pbf2osm $pkgdir/usr/bin/pbf2osm
}