diff options
author | Benjamin Chrétien | 2014-03-07 00:09:30 +0100 |
---|---|---|
committer | Benjamin Chrétien | 2014-03-07 00:09:30 +0100 |
commit | cba7bf99ab5c98047c19a7b8fa7bd800a9c85576 (patch) | |
tree | a39fd9a6f685f015caf382a9e666c15404a907cc /PKGBUILD | |
download | aur-cba7bf99ab5c98047c19a7b8fa7bd800a9c85576.tar.gz |
Add simbody + update eigen3-hg.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3f67bf157cb8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Benjamin Chretien <chretien at lirmm dot fr> +pkgname=simbody +pkgver=3.3.1 +pkgrel=2 +pkgdesc="High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton." +arch=('i686' 'x86_64') +url="https://simtk.org/home/simbody" +license=('Apache') +depends=('lapack' 'blas') +optdepends=('freeglut' 'libxi' 'libxmu') +makedepends=('git' 'cmake') +provides=() +conflicts=() + +_dir=Simbody +_tag=Simbody-${pkgver} +source=("${_dir}"::"git+https://github.com/simbody/simbody.git"#tag=${_tag}) +md5sums=('SKIP') + + +build() { + # Create build directory + [ -d ${srcdir}/build ] || mkdir ${srcdir}/build + cd ${srcdir}/build + + # Build project + cmake ${srcdir}/${_dir} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/opt/simbody + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install + + ln -s ${pkgdir}/opt/simbody/bin/VisualizerGUI ${pkgdir}/opt/simbody/examples/bin/VisualizerGUI +} |