blob: 3098c58f0cb88dd3449c6b2b4a44361d3c5ceaa1 (
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
|
# Maintainer: Dominik Kummer <admin@arkades.org>
pkgname=opennn
_pkgname=OpenNN
pkgver=26.0.1
pkgrel=4
pkgdesc="OpenNN neural network library with attention and deep learning support"
arch=('x86_64')
url="https://www.opennn.net/"
license=('AGPL-3.0-only')
depends=(
'gcc-libs'
'openmp'
)
makedepends=(
'git'
'cmake'
'eigen'
'ninja'
'tinyxml2'
)
optdepends=(
'cuda: CUDA acceleration support'
'cudnn: cuDNN acceleration support'
)
source=(
"https://github.com/Artelnics/opennn/archive/refs/tags/v26.0.1.tar.gz"
)
sha256sums=('457b383009b202dde4f4d25dccc840e2d0e26955b25ea345528f99b8df6ad250')
build() {
# Tests are currently turned off, until upstream fixes wrong test assertions
cmake -S "$pkgname-$pkgver" -B "$pkgname-$pkgver/build" \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOpenNN_BUILD_SHARED=ON \
-DOpenNN_BUILD_TESTS=OFF \
-DOpenNN_BUILD_EXAMPLES=OFF
cmake --build "$pkgname-$pkgver/build"
}
package() {
DESTDIR="$pkgdir" cmake --install "$pkgname-$pkgver/build"
install -Dm644 \
"$pkgname-$pkgver/LICENSE.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|