blob: c9bc9d1959a01a61f03ad8d64f245c16e151d286 (
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
|
# $Id$
# Maintainer: Dylan Whichard <dylan@whichard.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Adam Griffiths <adam_griffithsAATTdart.net.au>
_name=ode
pkgname=ode-python-bindings
pkgver=0.13.1
pkgrel=1
pkgdesc="An open source, high performance library for simulating rigid body dynamics with python bindings"
arch=('i686' 'x86_64')
url="https://bitbucket.org/odedevs/ode/"
license=('LGPL' 'BSD')
depends=('gcc-libs' 'bash' 'cython')
source=("https://bitbucket.org/odedevs/${_name}/downloads/${_name}-${pkgver}.tar.gz")
md5sums=('00f6613b3d8e5249be60e3a513d6aebd')
replaces=('ode')
conflicts=('ode')
prepare() {
sed -i 's/read()/read().decode("utf-8")/g' "${srcdir}/${_name}-${pkgver}/bindings/python/setup.py"
}
build() {
cd "${srcdir}/${_name}-${pkgver}"
./configure --prefix=/usr \
--with-trimesh=opcode \
--enable-new-trimesh \
--enable-shared \
--enable-double-precision
make
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
make DESTDIR=${pkgdir}/ install
install -Dm0644 ${srcdir}/${_name}-${pkgver}/ou/LICENSE-BSD.TXT \
${pkgdir}/usr/share/licenses/${_name}/LICENSE-BSD.TXT
install -Dm0644 ${srcdir}/${_name}-${pkgver}/GIMPACT/GIMPACT-LICENSE-BSD.TXT \
${pkgdir}/usr/share/licenses/${_name}/GIMPACT-LICENSE-BSD.TXT
install -Dm0644 ${srcdir}/${_name}-${pkgver}/libccd/BSD-LICENSE \
${pkgdir}/usr/share/licenses/${_name}/BSD-LICENSE
cd bindings/python/
python setup.py install --root="${pkgdir}"
}
|