diff options
author | Dylan Whichard | 2016-07-04 02:49:06 -0400 |
---|---|---|
committer | Dylan Whichard | 2016-07-04 02:50:26 -0400 |
commit | 47b3929d54b819cd9008c8728afc3b2203798183 (patch) | |
tree | 3abe01d3f2a770fe51a36f915ca54fedb254c85d | |
download | aur-ode-python-bindings.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a916d764b78e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Mon Jul 4 06:50:17 UTC 2016 +pkgbase = ode-python-bindings + pkgdesc = An open source, high performance library for simulating rigid body dynamics with python bindings + pkgver = 0.13.1 + pkgrel = 1 + url = https://bitbucket.org/odedevs/ode/ + arch = i686 + arch = x86_64 + license = LGPL + license = BSD + depends = gcc-libs + depends = bash + depends = cython + conflicts = ode + replaces = ode + source = https://bitbucket.org/odedevs/ode/downloads/ode-0.13.1.tar.gz + md5sums = 00f6613b3d8e5249be60e3a513d6aebd + +pkgname = ode-python-bindings + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c9bc9d1959a0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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}" +} |