blob: 0bd7b34b18b6ce475a194c83f416c1b211133101 (
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
|
# Maintainer: Martin Chang <marty188586@gmail.com>
_pkgname=etaler
pkgname=${_pkgname}-git
pkgver=0.1.5.92.ga033b22
pkgrel=1
pkgdesc='A flexable HTM (Hierarchical Temporal Memory) framework with full GPU support.'
arch=('i686' 'x86_64' 'aarch64')
url='https://github.com/etaler/Etaler'
license=('BSD')
depends=('tbb')
makedepends=('git' 'cmake' 'catch2' 'cereal')
optdepends=('xtensor: xtensor interop capability'
'arrayfire: arrayfire interpo capability'
'opencl-headers: GPU computing support via OpenCL'
)
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
source=("git+https://github.com/${_pkgname}/${_pkgname}.git")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}"/${_pkgname}
git describe --long --tags 2>/dev/null | sed -r 's/^v//;s/-/./g'
}
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule update --init
# Cannot use the --recursive flag currently. It works but is slow
mkdir -p "${srcdir}"/build
}
build() {
cd "${srcdir}"/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../${_pkgname}
make -j$(nproc)
tests/etaler_tests
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
}
|