summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rakowski2017-05-20 10:42:21 +0200
committerTim Rakowski2017-05-22 19:26:27 +0200
commit5edd39e23a04590b2d0a63ee4ecf3ca0f93badd4 (patch)
tree1cc2c529e66f73cab0d95584619c7c5177203f15
downloadaur-5edd39e23a04590b2d0a63ee4ecf3ca0f93badd4.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..4941b636f8d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Mon May 22 17:06:32 UTC 2017
+pkgbase = ros-lunar-tf2
+ pkgdesc = ROS - tf2 is the second generation of the transform library, which lets the user keep track of multiple coordinate frames over time.
+ pkgver = 0.5.15
+ pkgrel = 1
+ url = http://www.ros.org/wiki/tf2
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-lunar-rostime
+ makedepends = ros-lunar-catkin
+ makedepends = ros-lunar-geometry-msgs
+ makedepends = ros-lunar-tf2-msgs
+ makedepends = console-bridge
+ depends = ros-lunar-rostime
+ depends = ros-lunar-geometry-msgs
+ depends = ros-lunar-tf2-msgs
+ depends = console-bridge
+ source = ros-lunar-tf2-0.5.15-0.tar.gz::https://github.com/ros-gbp/geometry2-release/archive/release/lunar/tf2/0.5.15-0.tar.gz
+ sha256sums = b3cd7e7bd1887d545657a4c449ea84e8b78b00349d78a41d17b999e994a2f9fb
+
+pkgname = ros-lunar-tf2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a664032557e
--- /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 - tf2 is the second generation of the transform library, which lets the user keep track of multiple coordinate frames over time."
+url='http://www.ros.org/wiki/tf2'
+
+pkgname='ros-lunar-tf2'
+pkgver='0.5.15'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-lunar-rostime
+ ros-lunar-catkin
+ ros-lunar-geometry-msgs
+ ros-lunar-tf2-msgs)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ console-bridge)
+
+ros_depends=(ros-lunar-rostime
+ ros-lunar-geometry-msgs
+ ros-lunar-tf2-msgs)
+depends=(${ros_depends[@]}
+ console-bridge)
+
+# Git version (e.g. for debugging)
+# _tag=release/lunar/tf2/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/geometry2-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="geometry2-release-release-lunar-tf2-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/geometry2-release/archive/release/lunar/tf2/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('b3cd7e7bd1887d545657a4c449ea84e8b78b00349d78a41d17b999e994a2f9fb')
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/lunar/setup.bash ] && source /opt/ros/lunar/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/lunar \
+ -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
+}