summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 07d7f0f9f5f2b41f4e0184988dadaf8a2a269978 (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
_pkgname=etaler
pkgname=${_pkgname}-git
pkgver=0.1.5.23.gfcc88a9
pkgrel=1
pkgdesc='A flexable HTM (Hierarchical Temporal Memory) framework with full GPU support.'
arch=('i686' 'x86_64')
url='https://github.com/etaler/Etaler'
license=('BSD')

depends=('catch2' 'xtensor' 'intel-tbb')
makedepends=('git' 'cmake')
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, as it is trying to check out
	# git@github.com:LiangliangNan/Easy3D.git
	mkdir -p "${srcdir}"/build
}

build() {
	cd "${srcdir}"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr ../${_pkgname}
	make -j8
}

package() {
	cd "${srcdir}"/build
	make DESTDIR="${pkgdir}" install
}