summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2489b5cb56fc51dbb8744fb96c9bb27fe10104e (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
# Maintainer: Thomas Arnhold <thomas at arnhold dot org>

pkgname=pysbf-git
pkgver=20140606
pkgrel=1
pkgdesc="Python module to parse Septentrio Binary Format (SBF) files generated by Septentrio receivers."
arch=('i686' 'x86_64')
url="https://github.com/jashandeep-sohi/pysbf"
license=('GPL3')
depends=('python2')
makedepends=('git')

_gitroot="git://github.com/jashandeep-sohi/pysbf.git"
_gitname="pysbf"

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
  fi

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

  cd "$srcdir/$_gitname"
  python2 setup.py build

}

package() {
  cd "$srcdir/$_gitname"
  python2 setup.py install --prefix=/usr --root="$pkgdir"
}