# Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=fann pkgver=2.2.0 pkgrel=4 pkgdesc="Fast Artificial Neural Network Library" url="https://github.com/libfann/fann/" arch="all" license="LGPL-2.0-or-later" makedepends="cmake samurai" subpackages="$pkgname-dev $pkgname-fixed:_lib $pkgname-float:_lib $pkgname-double:_lib" source="$pkgname-$pkgver.tar.gz::https://github.com/libfann/fann/archive/$pkgver.tar.gz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } _lib() { local name=${subpkgname#$pkgname-} pkgdesc="$pkgdesc ($name)" amove usr/lib/lib$name* } sha512sums=" b307539a39d93078a489710ac77aa8c6e324f3cf5ef80299ce257d10c043913764abef83aceac5278a5bd243b1ee245b4e8331a9e13c774aa63c9cb604f86bdd fann-2.2.0.tar.gz "