summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Greenslade2017-02-13 13:30:51 -0800
committerSean Greenslade2017-02-13 13:30:51 -0800
commit1a0d1f245bd0158680471f67c6f03b3428e2ff1f (patch)
tree6a36a3a9f57fb47c4bdd4a18f7f344b46acf0666
downloadaur-1a0d1f245bd0158680471f67c6f03b3428e2ff1f.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..277e08c1e05
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Mon Feb 13 21:30:51 UTC 2017
+pkgbase = ros-kinetic-transmission-interface
+ pkgdesc = ROS - Transmission Interface.
+ pkgver = 0.11.3
+ pkgrel = 1
+ url = https://github.com/ros-controls/ros_control/wiki
+ arch = any
+ license = Modified BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-kinetic-pluginlib
+ makedepends = ros-kinetic-roscpp
+ makedepends = ros-kinetic-catkin
+ makedepends = ros-kinetic-cmake-modules
+ makedepends = ros-kinetic-hardware-interface
+ makedepends = tinyxml
+ depends = ros-kinetic-roscpp
+ depends = ros-kinetic-pluginlib
+ depends = tinyxml
+ source = ros-kinetic-transmission-interface-0.11.3-0.tar.gz::https://github.com/ros-gbp/ros_control-release/archive/release/kinetic/transmission_interface/0.11.3-0.tar.gz
+ sha256sums = 5a8e935932819bffaae1745f20ef6dc7bf6f3052626a2cba0944a7f085b2ef57
+
+pkgname = ros-kinetic-transmission-interface
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7af7e595dae
--- /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 - Transmission Interface."
+url='https://github.com/ros-controls/ros_control/wiki'
+
+pkgname='ros-kinetic-transmission-interface'
+pkgver='0.11.3'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('Modified BSD')
+
+ros_makedepends=(ros-kinetic-pluginlib
+ ros-kinetic-roscpp
+ ros-kinetic-catkin
+ ros-kinetic-cmake-modules
+ ros-kinetic-hardware-interface)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ tinyxml)
+
+ros_depends=(ros-kinetic-roscpp
+ ros-kinetic-pluginlib)
+depends=(${ros_depends[@]}
+ tinyxml)
+
+# Git version (e.g. for debugging)
+# _tag=release/kinetic/transmission_interface/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/ros_control-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="ros_control-release-release-kinetic-transmission_interface-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/ros_control-release/archive/release/kinetic/transmission_interface/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('5a8e935932819bffaae1745f20ef6dc7bf6f3052626a2cba0944a7f085b2ef57')
+
+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
+}