summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiras Zaidan2017-08-16 15:04:12 +0200
committerFiras Zaidan2017-08-16 15:04:12 +0200
commit17e96222329aec0e1d3ad31c0513bffa7dbc11bd (patch)
treec95b46baed06becfc7d199b5e05939bea4c88114
downloadaur-17e96222329aec0e1d3ad31c0513bffa7dbc11bd.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD53
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fd5d395723c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ros-kinetic-executive-smach-visualization
+ pkgdesc = ROS - This metapackage depends on the SMACH visualization tools.
+ pkgver = 2.0.1
+ pkgrel = 1
+ url = http://ros.org/wiki/smach
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-kinetic-catkin
+ depends = ros-kinetic-smach
+ depends = ros-kinetic-smach-msgs
+ depends = ros-kinetic-smach-ros
+ depends = ros-kinetic-executive-smach-visualization-smach-viewer
+ source = git+https://github.com/mcgill-robotics/executive_smach_visualization.git#branch=kinetic-devel
+ sha256sums = SKIP
+
+pkgname = ros-kinetic-executive-smach-visualization
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..58fd400cbee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Firas Zaidan <firas@zaidan.de>
+pkgdesc="ROS - This metapackage depends on the SMACH visualization tools."
+url='http://ros.org/wiki/smach'
+
+pkgname='ros-kinetic-executive-smach-visualization'
+pkgver='2.0.1'
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-kinetic-catkin)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-kinetic-smach
+ ros-kinetic-smach-msgs
+ ros-kinetic-smach-ros
+ ros-kinetic-executive-smach-visualization-smach-viewer)
+depends=(${ros_depends[@]})
+
+_dir="executive_smach_visualization/executive_smach_visualization"
+source=("git+https://github.com/mcgill-robotics/executive_smach_visualization.git#branch=kinetic-devel")
+sha256sums=('SKIP')
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/kinetic/setup.bash ] && source /opt/ros/kinetic/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/kinetic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+ -DPYTHON_BASENAME=-python2.7 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}