summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fbcb57e2b501bae8c731d4f42fcd493da6513e0b (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
# Maintainer: Fabrice aneche <akh at nobugware dot com>

pkgname=s2geometry-git
pkgver=r558
pkgrel=1
pkgdesc="Computational geometry and spatial indexing on the sphere"
arch=('i686' 'x86_64')
url="https://s2geometry.io/"
license=('APACHE2')
depends=('openssl' 'python')
makedepends=('git' 'cmake' 'swig')
source=("git+https://github.com/google/s2geometry.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/s2geometry"
  printf "r%s" "$(git rev-list --count HEAD)"
}

build() {
  cd "$srcdir/s2geometry"
  mkdir -p build
  cd build
  cmake -DGTEST_ROOT= -DCMAKE_INSTALL_PREFIX=/usr  ..
  make
}

package() {
  cd "$srcdir/s2geometry/build"
  make DESTDIR="$pkgdir/" install
}