summaryrefslogtreecommitdiff
path: root/pcr/libfann/PKGBUILD
blob: 6a888259668ae0a7a8c01cc1f5593e05d5560b6b (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
32
33
# Maintainer: Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
_origname=fann
pkgname=lib${_origname}
_fullrev=d71d54788bee56ba4cf7522801270152da5209d7
_rev=d71d54788
pkgver=2.2.0.${_rev}
pkgrel=3
pkgdesc="Fast Artificial Neural Network Library"
url="https://github.com/${pkgname}/${_origname}"
arch=('i686' 'x86_64')
license=('LGPLv2.1')
depends=('glibc')
makedepends=('git' 'gcc' 'cmake' 'make' 'coreutils')
source=(${pkgname}-${pkgver}.zip::https://github.com/${pkgname}/${_origname}/archive/${_fullrev}.zip)

sha256sums=('a456c8703de30734317549ba26e7c574f56edbc7964d23f3ffe0bcd51c3297d6')

build() {
	cd "${srcdir}/${_origname}-${_fullrev}"

	mkdir -p build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..

	make -j$(nproc)
}

package() {
	cd "${srcdir}/${_origname}-${_fullrev}/build"

	make install
}