summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD34
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8a1512bf4f7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = h3-git
+ pkgdesc = Hexagonal hierarchical geospatial indexing system
+ pkgver = v3.3.0.r0.g6af4914
+ pkgrel = 1
+ url = https://github.com/uber/h3
+ arch = x86_64
+ license = Apache
+ makedepends = git
+ makedepends = cmake
+ makedepends = make
+ makedepends = gcc
+ makedepends = libtool
+ provides = h3
+ conflicts = h3
+ source = h3-git::git+https://github.com/uber/h3.git
+ md5sums = SKIP
+
+pkgname = h3-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4e2ad2180e4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Zacharias Knudsen <zachasme@gmail.com>
+pkgname=h3-git
+pkgver=v3.3.0.r0.g6af4914
+pkgrel=1
+pkgdesc="Hexagonal hierarchical geospatial indexing system"
+arch=('x86_64')
+url="https://github.com/uber/h3"
+license=('Apache')
+makedepends=('git' 'cmake' 'make' 'gcc' 'libtool')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("$pkgname::git+https://github.com/uber/h3.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd $pkgname
+ cmake -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr .
+ make
+}
+
+check() {
+ cd $pkgname
+ make test
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+}