summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a92b948ee56b263cf113ef7d5285e5b19bd1daa1 (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=r365
pkgrel=1
pkgdesc="Computational geometry and spatial indexing on the sphere"
arch=('i686' 'x86_64')
url="https://s2geometry.io/"
license=('APACHE2')
depends=('openssl' 'python' 'gtest')
makedepends=('git' 'cmake')
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 -DCMAKE_INSTALL_PREFIX=/usr  ..
  make
}

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