summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f73ca8fc971b4d62cfce5acc3d84b47bc200640 (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
# Maintainer: trougnouf (Benoit Brummer) <trougnouf at gmail dot com>

_name='estool'
pkgname="python-${_name}-git"
pkgver=r76.b095452
pkgrel=2
pkgdesc="Implementation of various Evolution Strategies, such as GA, PEPG, CMA-ES and OpenAI's ES using common interface"
provides=(python-${_name})
conflicts=(python-${_name})
url="https://github.com/hardmaru/${_name}"
depends=('python-gym' 'python-pybullet' 'python-pycma' 
'python-mpi4py')
optdepends=('roboschool: roboschool gym environments')
makedepends=('python-setuptools')
license=('MIT')
arch=('x86_64')

pkgver() {
  cd "${srcdir}/$_name"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

source=("git+${url}.git")
	
sha256sums=('SKIP')

build() {
	cd "${srcdir}/${_name}"
	python setup.py build
}

package() {
	cd "${srcdir}/${_name}"
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}