# $Id: PKGBUILD 241130 2015-06-20 08:10:50Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: kusakata <shohei atmark kusakata period com>

pkgname=mdds
pkgver=0.12.1
pkgrel=1
pkgdesc="A collection of multi-dimensional data structures and indexing algorithms"
arch=('any')
url="https://gitlab.com/mdds/mdds"
license=('MIT')
checkdepends=('boost')
# see http://code.google.com/p/multidimalgorithm/wiki/Downloads
source=(http://kohei.us/files/mdds/src/${pkgname}_${pkgver}.tar.bz2)
sha1sums=('e7469349f8d0c65545896fe553918f3ea93bd84d')

build() {
  cd ${pkgname}_${pkgver}
  ./configure --prefix=/usr
  # make
}

check() {
  cd ${pkgname}_${pkgver}
  make check
}

package() {
  cd ${pkgname}_${pkgver}
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
