blob: 6c60494e4731d9e069b784c349e1a8422b716c74 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: Aetf
pkgname=('openann-git' 'openann-doc-git')
_gitname=OpenANN
pkgver=1.1.0.r57.g7e525cb
pkgrel=1
pkgdesc="An open source library for artificial neural networks. Git version"
arch=('i686' 'x86_64')
url="https://github.com/OpenANN/OpenANN"
license=('GPL3')
depends=('eigen' 'alglib')
makedepends=('unzip' 'wget' 'git' 'cmake>=2.8' 'doxygen' 'graphviz')
conflicts=('openann')
provides=('openann')
#install=qbittorrent.install
source=('git://github.com/OpenANN/OpenANN.git'
'use-system-alglib.patch'
)
md5sums=('SKIP'
'62c7c1e3e493bd35e1913a60e9da1a9e'
)
pkgver() {
cd $_gitname
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $_gitname
patch -p1 -i ../use-system-alglib.patch
# cd lib
# sh setup.sh CMA-ESpp
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DBUILD_PYTHON=OFF \
-DALWAYS_BUILD_DOCUMENTATION=ON \
..
}
build() {
cd $_gitname/build
make
}
package_openann-git() {
cd $_gitname/build
make DESTDIR="$pkgdir/" install
# remove doc directory
rm -rf "$pkgdir/usr/share/doc"
}
package_openann-doc-git() {
pkgdesc="Documentation for OpenANN, an open source library for artificial neural networks. Git version"
arch=('any')
url="https://github.com/OpenANN/OpenANN"
license=('GPL3')
depends=()
conflicts=()
provides=()
cd $_gitname/build
make DESTDIR="$pkgdir/" install
rm -rf "$pkgdir/usr/share/pkgconfig"
rm -rf "$pkgdir/usr/lib"
rm -rf "$pkgdir/usr/include"
}
|