summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMartin Pospíšil2015-06-09 18:41:28 +0200
committerMartin Pospíšil2015-06-09 18:41:28 +0200
commit4d47593ea3d8c251a7139573c0899c7ebf72c071 (patch)
tree3b2e8bb55819c1883c4d5d3622b2666d852643be /PKGBUILD
downloadaur-ros-indigo-object-recognition-msgs.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD64
1 files changed, 64 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1b1b650fbb0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - Object_recognition_msgs contains the ROS message and the actionlib definition used in object_recognition_core."
+url='http://www.ros.org/wiki/object_recognition'
+
+pkgname='ros-indigo-object-recognition-msgs'
+pkgver='0.4.1'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-indigo-shape-msgs
+ ros-indigo-geometry-msgs
+ ros-indigo-std-msgs
+ ros-indigo-catkin
+ ros-indigo-message-generation
+ ros-indigo-actionlib-msgs
+ ros-indigo-sensor-msgs)
+makedepends=('cmake' 'git' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-indigo-shape-msgs
+ ros-indigo-geometry-msgs
+ ros-indigo-std-msgs
+ ros-indigo-message-runtime
+ ros-indigo-actionlib-msgs
+ ros-indigo-sensor-msgs)
+depends=(${ros_depends[@]})
+
+_tag=release/indigo/object_recognition_msgs/${pkgver}-${_pkgver_patch}
+_dir=object_recognition_msgs
+source=("${_dir}"::"git+https://github.com/ros-gbp/object_recognition_msgs-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
+}