diff options
author | xantares | 2015-06-08 22:47:40 +0200 |
---|---|---|
committer | xantares | 2015-06-08 22:47:40 +0200 |
commit | a7d9af757b224d0297b380ffb048b626495b2832 (patch) | |
tree | 5521054852a5dc9af70c0b09d90819baacd2173a | |
download | aur-mingw-w64-flann.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..93fdf8a5fb61 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-flann + pkgdesc = FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces (mingw-w64) + pkgver = 1.8.4 + pkgrel = 1 + url = http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN + arch = any + license = BSD + makedepends = mingw-w64-cmake + depends = mingw-w64-crt + options = !buildflags + options = !strip + options = staticlibs + source = flann-1.8.4-src::git+https://github.com/mariusmuja/flann.git + md5sums = SKIP + +pkgname = mingw-w64-flann + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ca71acb3d23 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +pkgname=mingw-w64-flann +pkgver=1.8.4 +pkgrel=1 +pkgdesc="FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces (mingw-w64)" +arch=('any') +url='http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN' +license=('BSD') +depends=('mingw-w64-crt') +makedepends=('mingw-w64-cmake') +options=('!buildflags' '!strip' 'staticlibs') +#source=("http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-${pkgver}-src.zip") +#md5sums=('a0ecd46be2ee11a68d2a7d9c6b4ce701') +source=(flann-${pkgver}-src::git+https://github.com/mariusmuja/flann.git) +md5sums=('SKIP') +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + + +build() { + cd "$srcdir/flann-${pkgver}-src" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_PYTHON_BINDINGS=OFF \ + -DBUILD_MATLAB_BINDINGS=OFF \ + -DBUILD_EXAMPLES=OFF \ + -DBUILD_TESTS=OFF \ + -DBUILD_DOC=OFF \ + -DPYTHON_EXECUTABLE=0 \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "$srcdir/flann-$pkgver-src/build-${_arch}" + make DESTDIR="$pkgdir" install + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done + +} + |