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

_name='roboschool'
pkgname="${_name}-git"
pkgver=r242.675f1ac4
pkgrel=1
pkgdesc='Robot simulation, integrated with OpenAI Gym.'
url="https://github.com/openai/${_name}"
depends=('python-gym-git' 'qt5-base' 'assimp' 'tinyxml')
makedepends=('cmake' 'python-setuptools' 'boost')
license=('MIT')
arch=('any')


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

source=("git+${url}.git"
	"git+https://github.com/olegklimov/bullet3#branch=${_name}_self_collision")
	
sha256sums=('SKIP' 'SKIP')

build() {
	cd "${srcdir}/roboschool/roboschool/cpp-household"
	sed -i -e s/\$\(BOOST_PYTHON3_POSTFIX\)//g Makefile
	mkdir -p "${srcdir}/bullet3/build"
	cd "${srcdir}/bullet3/build"
	cmake -DBUILD_SHARED_LIBS=ON -DUSE_DOUBLE_PRECISION=1 -DCMAKE_INSTALL_PREFIX:PATH=${srcdir}/${_name}/${_name}/cpp-household/bullet_local_install -DBUILD_CPU_DEMOS=OFF -DBUILD_BULLET2_DEMOS=OFF -DBUILD_EXTRAS=OFF  -DBUILD_UNIT_TESTS=OFF -DBUILD_CLSOCKET=OFF -DBUILD_ENET=OFF -DBUILD_OPENGL3_DEMOS=OFF ..
	make
	make install
	cd ${srcdir}/${_name}
	python setup.py build
}

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