diff options
author | Martin Pospíšil | 2015-06-09 18:41:28 +0200 |
---|---|---|
committer | Martin Pospíšil | 2015-06-09 18:41:28 +0200 |
commit | e6d79bdb57420c9e067e16ba0a6c4fadec68fe1e (patch) | |
tree | 1b85eb17a0743faac8196f2355fe34cf0d313778 | |
download | aur-ros-indigo-libccd.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e99d9026c9d4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ros-indigo-libccd + pkgdesc = ROS - libccd is library for collision detection between two convex shapes. + pkgver = 1.5.0 + pkgrel = 2 + url = http://libccd.danfis.cz/ + arch = any + license = BSD + makedepends = cmake + makedepends = git + makedepends = ros-build-tools + source = libccd::git+https://github.com/ros-gbp/libccd-release.git#tag=release/indigo/libccd/1.5.0-1 + md5sums = SKIP + +pkgname = ros-indigo-libccd + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e6626c60c03f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Script generated with import_catkin_packages.py +# For more information: https://github.com/bchretien/arch-ros-stacks +pkgdesc="ROS - libccd is library for collision detection between two convex shapes." +url='http://libccd.danfis.cz/' + +pkgname='ros-indigo-libccd' +pkgver='1.5.0' +_pkgver_patch=1 +arch=('any') +pkgrel=2 +license=('BSD') + +ros_makedepends=() +makedepends=('cmake' 'git' 'ros-build-tools' + ${ros_makedepends[@]}) + +ros_depends=() +depends=(${ros_depends[@]}) + +_tag=release/indigo/libccd/${pkgver}-${_pkgver_patch} +_dir=libccd +source=("${_dir}"::"git+https://github.com/ros-gbp/libccd-release.git"#tag=${_tag}) +md5sums=('SKIP') + +build() { + # Use ROS environment variables + source /usr/share/ros-build-tools/clear-ros-env.sh + [ -f /opt/ros/indigo/setup.bash ] && source /opt/ros/indigo/setup.bash + + # Create build directory + [ -d ${srcdir}/build ] || mkdir ${srcdir}/build + cd ${srcdir}/build + + # Fix Python2/Python3 conflicts + /usr/share/ros-build-tools/fix-python-scripts.sh -v 2 ${srcdir}/${_dir} + + # Build project + cmake ${srcdir}/${_dir} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCATKIN_BUILD_BINARY_PACKAGE=ON \ + -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo \ + -DPYTHON_EXECUTABLE=/usr/bin/python2 \ + -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \ + -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \ + -DPYTHON_BASENAME=-lpython2.7 \ + -DSETUPTOOLS_DEB_LAYOUT=OFF + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} |