summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97c08cc7c05a56ce21579800fceb1137d595a419 (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
# Contributor: Andreas Hauser <andy-aur@splashground.de>
# Contributor: Beej Jorgensen <beej@beej.us>
# Maintainer: Thomas Laroche <tho.laroche@gmail.com>
pkgname=fann-git
pkgver=2.2.0.r57.g0e6fa25
pkgrel=1
pkgdesc="Fast artificial neural network library"
url="http://leenissen.dk/fann/"
arch=('i686' 'x86_64')
license=('LGPL2.1')
makedepends=('cmake')
source=("$pkgname::git+https://github.com/libfann/fann.git")
md5sums=('SKIP')
conflicts=('fann')
provides=('fann')

pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $srcdir/$pkgname
  cmake -D CMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd $srcdir/$pkgname
  make DESTDIR=$pkgdir install
}