summaryrefslogtreecommitdiff
path: root/pcr/libfann
diff options
context:
space:
mode:
authorfauno <fauno@endefensadelsl.org>2017-04-26 13:56:17 -0300
committerfauno <fauno@endefensadelsl.org>2017-04-26 13:56:17 -0300
commitcf761c6b82f3d8ebc258b305ca5d7215b5108a7a (patch)
tree4e0671576c484969e91e0e42a5f53b0529640243 /pcr/libfann
parent71943d0d5fb2d29748a228c11f67d49cc8c39b91 (diff)
downloadabslibre-cf761c6b82f3d8ebc258b305ca5d7215b5108a7a.tar.gz
abslibre-cf761c6b82f3d8ebc258b305ca5d7215b5108a7a.tar.bz2
abslibre-cf761c6b82f3d8ebc258b305ca5d7215b5108a7a.zip
rspamd
Diffstat (limited to 'pcr/libfann')
-rw-r--r--pcr/libfann/PKGBUILD33
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
+}
+