summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e3f760559525dd52d85056c62f909a9ae52732f (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
# Maintainer: Schrottfresse <schrottfresse@gmx.de>
pkgname=libspatialindex-git
pkgver=r460.0f5f2d0
pkgrel=1
pkgdesc="C++ implementation of R*-tree, an MVR-tree and a TPR-tree with C API "
arch=('i686' 'x86_64')
url="http://libspatialindex.github.com/"
license=('GPL')
depends=('gcc-libs')
makedepends=('git' 'gtest')
provides=('libspatialindex')
conflicts=('libspatialindex')
source=('git+https://github.com/libspatialindex/libspatialindex.git')
md5sums=('SKIP')

_gitname=libspatialindex

pkgver() {
  cd $_gitname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd $_gitname
  sed -i -e 's+#!/usr/bin/env python$+#!/usr/bin/env python2+' ./test/gtest/gtest-*/scripts/*.py

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd $_gitname
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: