summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2018-07-20 22:06:29 +0000
committerDaniel Bermond2018-07-20 22:06:29 +0000
commit9b1edf937e26ce8e8d3e458c6d347d2ceb131d3a (patch)
treedd509c7edb785c7f95ba4b59c42acce3caa820cd
parente33f31ea845cb262ebe14753333576b258850e7b (diff)
downloadaur-9b1edf937e26ce8e8d3e458c6d347d2ceb131d3a.tar.gz
Switch source to github. Add conflicts. Cosmetic changes.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD32
2 files changed, 25 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3820da8e730..b6828bfdc27 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = fann
pkgdesc = Fast artificial neural network library
pkgver = 2.2.0
- pkgrel = 2
+ pkgrel = 3
url = http://leenissen.dk/fann/
arch = i686
arch = x86_64
license = LGPL2.1
makedepends = cmake
- source = http://downloads.sourceforge.net/sourceforge/fann/FANN-2.2.0-Source.zip
- md5sums = 292d914684c9eab1d84eb1f59b0fbf69
+ conflicts = fann-git
+ source = fann-2.2.0.tar.gz::https://github.com/libfann/fann/archive/2.2.0.tar.gz
+ sha256sums = f31c92c1589996f97d855939b37293478ac03d24b4e1c08ff21e0bd093449c3c
pkgname = fann
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
}