summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Greenslade2016-12-20 21:37:16 -0800
committerSean Greenslade2016-12-20 21:37:16 -0800
commit9f37bfa086902626d5a7a646ff2358992c689c0e (patch)
treec7f3f1503692084731d9af91559c12a8c30c7da1
downloadaur-9f37bfa086902626d5a7a646ff2358992c689c0e.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD66
2 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5cddd96eabc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Wed Dec 21 05:37:15 UTC 2016
+pkgbase = ros-kinetic-nodelet-topic-tools
+ pkgdesc = ROS - This package contains common nodelet tools such as a mux, demux and throttle.
+ pkgver = 1.9.8
+ pkgrel = 1
+ url = http://ros.org/wiki/nodelet_topic_tools
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-kinetic-dynamic-reconfigure
+ makedepends = ros-kinetic-catkin
+ makedepends = boost
+ depends = ros-kinetic-message-filters
+ depends = ros-kinetic-pluginlib
+ depends = ros-kinetic-dynamic-reconfigure
+ depends = ros-kinetic-roscpp
+ depends = ros-kinetic-nodelet
+ depends = boost
+ source = ros-kinetic-nodelet-topic-tools-1.9.8-0.tar.gz::https://github.com/ros-gbp/nodelet_core-release/archive/release/kinetic/nodelet_topic_tools/1.9.8-0.tar.gz
+ sha256sums = b5fe8c023ddbf2ed96b416344e89ac2194a1a142b1840016b01b152d4f58397c
+
+pkgname = ros-kinetic-nodelet-topic-tools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b9bc369550e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,66 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - This package contains common nodelet tools such as a mux, demux and throttle."
+url='http://ros.org/wiki/nodelet_topic_tools'
+
+pkgname='ros-kinetic-nodelet-topic-tools'
+pkgver='1.9.8'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-kinetic-dynamic-reconfigure
+ ros-kinetic-catkin)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ boost)
+
+ros_depends=(ros-kinetic-message-filters
+ ros-kinetic-pluginlib
+ ros-kinetic-dynamic-reconfigure
+ ros-kinetic-roscpp
+ ros-kinetic-nodelet)
+depends=(${ros_depends[@]}
+ boost)
+
+# Git version (e.g. for debugging)
+# _tag=release/kinetic/nodelet_topic_tools/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/nodelet_core-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="nodelet_core-release-release-kinetic-nodelet_topic_tools-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/nodelet_core-release/archive/release/kinetic/nodelet_topic_tools/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('b5fe8c023ddbf2ed96b416344e89ac2194a1a142b1840016b01b152d4f58397c')
+
+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
+}