diff options
author | Benjamin Chrétien | 2015-01-21 18:51:05 +0100 |
---|---|---|
committer | Benjamin Chrétien | 2015-01-21 18:51:05 +0100 |
commit | 99b7870c8297f5a7695d360352d7033525d680f6 (patch) | |
tree | 27a3811b99bed0b7e1a81d838ca8747c808ff34b | |
download | aur-99b7870c8297f5a7695d360352d7033525d680f6.tar.gz |
Update simbody + add RobOptim plugin.
-rw-r--r-- | .SRCINFO | 24 | ||||
-rwxr-xr-x | PKGBUILD | 69 |
2 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..da93524f79db --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = roboptim-core-plugin-cminpack-git + pkgdesc = Trajectory optimization for robotics + pkgver = 1.0.r157.gf701a7a + pkgrel = 1 + url = http://roboptim.net/ + arch = i686 + arch = x86_64 + license = (L)GPL2 + makedepends = git + makedepends = cmake + makedepends = doxygen + depends = roboptim-core-git + depends = boost>=1.41 + depends = eigen3 + depends = pkg-config + depends = libltdl + depends = cminpack + provides = roboptim-core-plugin-cminpack + conflicts = roboptim-core-plugin-cminpack + source = roboptim-core-plugin-cminpack::git+https://github.com/roboptim/roboptim-core-plugin-cminpack.git + md5sums = SKIP + +pkgname = roboptim-core-plugin-cminpack-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..60ee0b1da701 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: Benjamin Chretien <chretien at lirmm dot fr> + +pkgname=roboptim-core-plugin-cminpack-git +pkgver=1.0.r157.gf701a7a +pkgrel=1 +pkgdesc="Trajectory optimization for robotics" +arch=('i686' 'x86_64') +url="http://roboptim.net/" +license=('(L)GPL2') +depends=('roboptim-core-git' 'boost>=1.41' 'eigen3' 'pkg-config' 'libltdl' + 'cminpack') +makedepends=('git' 'cmake' 'doxygen') +optdepends=() +provides=('roboptim-core-plugin-cminpack') +conflicts=('roboptim-core-plugin-cminpack') + +_name="roboptim-core-plugin-cminpack" +source=("${_name}"::"git+https://github.com/roboptim/${_name}.git") +md5sums=('SKIP') + +# Build type +_buildtype="RelWithDebInfo" + +pkgver() { + cd "${srcdir}/${_name}" + git describe --long --tags | cut -c 2- | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +# Build the project +build() { + cd "${srcdir}/${_name}" + + # Download submodules + git submodule init && git submodule update + + msg "Starting CMake (build type = ${_buildtype})..." + + # Create a build directory + mkdir -p build && cd build + + # Run CMake in release + cmake -DCMAKE_BUILD_TYPE="${_buildtype}" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + "${srcdir}/${_name}" + + # Compile the library + msg "Building the project..." + make --silent + + # Create the documentation + msg "Creating the documentation..." + make --silent doc +} + +# Run unit tests +check() { + msg "Running unit tests..." + cd "${srcdir}/${_name}/build" + + make test +} + +# Create the package +package() { + cd "${srcdir}/${_name}/build" + + msg "Installing files..." + make --silent DESTDIR="${pkgdir}/" install +} |