summaryrefslogtreecommitdiff
path: root/pcr/libfann/PKGBUILD
blob: c538d33bbf488f044f2a602bb3a5d82475c3c954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor (AUR): Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
# Contributor: fauno <fauno@parabola.nu>
# Contrbutor: bill-auger <bill-auger@programmer.net>
# Maintainers: 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
}