aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flann/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/flann/APKBUILD')
-rw-r--r--testing/flann/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/flann/APKBUILD b/testing/flann/APKBUILD
new file mode 100644
index 0000000000..07f15aea6f
--- /dev/null
+++ b/testing/flann/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
+# Maintainer: Bradley J Chambers <brad.chambers@gmail.com>
+pkgname=flann
+pkgver=1.9.1
+pkgrel=0
+pkgdesc="Fast Library for Approximate Nearest Neighbors"
+url="https://www.cs.ubc.ca/research/flann/"
+arch="all"
+license="BSD-3-Clause"
+# FLANN tests are broken, test data is invalid
+options="!check"
+depends=""
+makedepends="cmake"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/mariusmuja/$pkgname/archive/$pkgver.tar.gz
+ cmake.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ mkdir build && cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=ON
+ make
+}
+
+package() {
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="0da78bb14111013318160dd3dee1f93eb6ed077b18439fd6496017b62a8a6070cc859cfb3e08dad4c614e48d9dc1da5f7c4a21726ee45896d360506da074a6f7 flann-1.9.1.tar.gz
+786558070bb50e60f4f133242d9b77ce72d248aaa45012345c1d768cf648d9d083698663c4ba54f63ae301fc2fe09859a32b12ef0bff20c53e45d57b424c9f48 cmake.patch"