# Contributor: Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
# Contributor: fauno <fauno@parabola.nu>
# Contrbutor: bill-auger <bill-auger@programmer.net>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>

pkgname=libfann
_srcname=fann
pkgver=2.2.0
pkgrel=6
pkgdesc="Fast Artificial Neural Network Library"
url=https://github.com/libfann/fann/
arch=('i686' 'x86_64' 'armv7h')
license=('LGPL2.1')

depends=('glibc')
makedepends=('git' 'gcc' 'cmake' 'make' 'coreutils')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${_srcname}/archive/${pkgver}.tar.gz)

sha256sums=('f31c92c1589996f97d855939b37293478ac03d24b4e1c08ff21e0bd093449c3c')


build()
{
  mkdir -p "${srcdir}"/${_srcname}-${pkgver}/build
  cd "${srcdir}"/${_srcname}-${pkgver}/build

  cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" ..

  make
}

package()
{
  cd "${srcdir}"/${_srcname}-${pkgver}/build

  make install
}
