summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e296115e8e2d3a3a856de81e6a0f5163a4b348d (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
41
42
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: Marc Cousin (Marco44) <cousinmarc@gmail.com>

pkgname=imposm-parser-git
pkgver=20131009
pkgrel=1
pkgdesc="Python Lib for Open Street Map files parsing"
url="https://github.com/omniscale/imposm-parser"
arch=('any')
license=('APL2.0')
depends=('python2')
makedepends=('git' 'protobuf' 'python2-protobuf')
_gitroot='git://github.com/omniscale/imposm-parser.git'
_gitname='imposm-parser'
_gitnumber='1.0'

build() {
  cd ${srcdir}

  if [ -d ${srcdir}/$_gitname ]; then
    cd $_gitname && git pull origin
    msg "The local files are up-to-date now."
  else
    git clone $_gitroot $_gitname
  fi

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

  if [ -d ${srcdir}/$_gitname-build ]; then
    rm -rf ${srcdir}/$_gitname-build
  fi

  cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1
}

package()
{
  cd ${srcdir}/$_gitname-build
  python2 setup.py install --root=$pkgdir || return 1
  install -d $pkgdir/usr/share/licenses/$pkgname
}