diff options
Diffstat (limited to 'pcr/libfann')
-rw-r--r-- | pcr/libfann/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/libfann/PKGBUILD b/pcr/libfann/PKGBUILD new file mode 100644 index 000000000..6a8882596 --- /dev/null +++ b/pcr/libfann/PKGBUILD @@ -0,0 +1,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 +} + |