summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimon Engelke2018-09-07 00:35:35 +0200
committerTimon Engelke2018-09-07 00:35:35 +0200
commit400d53b601407b7981bda44817aecf3bfedc5614 (patch)
tree2f57280a4e9a5659200108e69f2e4f38e0ea6471
downloadaur-400d53b601407b7981bda44817aecf3bfedc5614.tar.gz
Initial
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD68
2 files changed, 94 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ad832242361
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = ros-melodic-moveit-commander
+ pkgdesc = ROS - Python interfaces to MoveIt.
+ pkgver = 0.10.1
+ pkgrel = 1
+ url = http://moveit.ros.org
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-catkin
+ makedepends = python
+ makedepends = python-catkin-pkg
+ depends = ros-melodic-moveit-msgs
+ depends = ros-melodic-tf
+ depends = ros-melodic-geometry-msgs
+ depends = ros-melodic-rospy
+ depends = ros-melodic-moveit-ros-planning-interface
+ depends = ros-melodic-sensor-msgs
+ depends = ros-melodic-shape-msgs
+ depends = python
+ depends = python-pyassimp
+ source = ros-melodic-moveit-commander-0.10.1-0.tar.gz::https://github.com/ros-gbp/moveit-release/archive/release/melodic/moveit_commander/0.10.1-0.tar.gz
+ sha256sums = baff305aaec5539e52bf8d37844125d72c0b03dff248435302e14bba05b6f85f
+
+pkgname = ros-melodic-moveit-commander
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..119f25b43b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Timon Engelke <aur@timonengelke.de>
+pkgdesc="ROS - Python interfaces to MoveIt."
+url='http://moveit.ros.org'
+
+pkgname='ros-melodic-moveit-commander'
+pkgver='0.10.1'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-melodic-catkin)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ python
+ python-catkin-pkg)
+
+ros_depends=(ros-melodic-moveit-msgs
+ ros-melodic-tf
+ ros-melodic-geometry-msgs
+ ros-melodic-rospy
+ ros-melodic-moveit-ros-planning-interface
+ ros-melodic-sensor-msgs
+ ros-melodic-shape-msgs)
+depends=(${ros_depends[@]}
+ python
+ python-pyassimp)
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/moveit_commander/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/moveit-release.git"#tag=${_tag})
+# sha256sums=('8bf2b1fa88ff397eaa0ef4ffeeef6d28b458322112383985fc6abed2b3b77893')
+
+# Tarball version (faster download)
+_dir="moveit-release-release-melodic-moveit_commander-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/moveit-release/archive/release/melodic/moveit_commander/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('baff305aaec5539e52bf8d37844125d72c0b03dff248435302e14bba05b6f85f')
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/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 3 ${srcdir}/${_dir}
+
+ # Build project
+ cmake ${srcdir}/${_dir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
+ -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
+ -DPYTHON_BASENAME=-python3.7m \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}