aboutsummaryrefslogtreecommitdiffstats
path: root/community/fann/APKBUILD
blob: 82727c0dd4735586492e49e346dd136ff5b0d2c5 (plain) (blame)
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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=fann
pkgver=2.2.0
pkgrel=0
pkgdesc="Fast Artificial Neural Network Library"
url="http://leenissen.dk/fann/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="cmake"
subpackages="$pkgname-dev $pkgname-fixed:_lib $pkgname-float:_lib $pkgname-double:_lib"
source="$pkgname-$pkgver.tar.gz::https://github.com/lib$pkgname/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	make -C "$builddir" DESTDIR="$pkgdir" install
}

_lib() {
	local name=${subpkgname#$pkgname-}
	pkgdesc="$pkgdesc ($name)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib$name* "$subpkgdir"/usr/lib
}

sha512sums="b307539a39d93078a489710ac77aa8c6e324f3cf5ef80299ce257d10c043913764abef83aceac5278a5bd243b1ee245b4e8331a9e13c774aa63c9cb604f86bdd  fann-2.2.0.tar.gz"