summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 21 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 08ecaec4ee3..5b344df63fb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,33 @@
+# Maintainer : Daniel Bermond < yahoo-com: danielbermond >
# Contributor: Andreas Hauser <andy-aur@splashground.de>
-# Maintainer: Beej Jorgensen <beej@beej.us>
+# Contributor: Beej Jorgensen <beej@beej.us>
+
pkgname=fann
pkgver=2.2.0
-pkgrel=2
-pkgdesc="Fast artificial neural network library"
-url="http://leenissen.dk/fann/"
+pkgrel=3
+pkgdesc='Fast artificial neural network library'
+url='http://leenissen.dk/fann/'
arch=('i686' 'x86_64')
license=('LGPL2.1')
makedepends=('cmake')
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/FANN-$pkgver-Source.zip")
-md5sums=('292d914684c9eab1d84eb1f59b0fbf69')
+conflicts=('fann-git')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/libfann/fann/archive/${pkgver}.tar.gz")
+sha256sums=('f31c92c1589996f97d855939b37293478ac03d24b4e1c08ff21e0bd093449c3c')
build() {
- cd $srcdir/FANN-${pkgver}-Source
- cmake -D CMAKE_INSTALL_PREFIX=/usr .
- make
+ cd "${pkgname}-${pkgver}"
+
+ cmake \
+ -DCMAKE_COLOR_MAKEFILE:BOOL='ON' \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+ -Wno-dev \
+ .
+
+ make
}
package() {
- cd $srcdir/FANN-${pkgver}-Source
- make DESTDIR=$pkgdir install
+ cd "${pkgname}-${pkgver}"
+
+ make DESTDIR="$pkgdir" install
}