summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rakowski2017-05-20 10:41:21 +0200
committerTim Rakowski2017-05-22 19:26:28 +0200
commit8ec5d1b4638c0cedeb1620b2d19471c18d9792d0 (patch)
treeded2e02f144ddde64431620268a3e904b9ead544
downloadaur-8ec5d1b4638c0cedeb1620b2d19471c18d9792d0.tar.gz
Initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD64
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d14b3a8c6e9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+# Generated by mksrcinfo v8
+# Mon May 22 17:06:34 UTC 2017
+pkgbase = ros-lunar-bondpy
+ pkgdesc = ROS - Python implementation of bond, a mechanism for checking when another process has terminated.
+ pkgver = 1.7.19
+ pkgrel = 1
+ url = http://www.ros.org/wiki/bondpy
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-lunar-catkin
+ makedepends = ros-lunar-smclib
+ makedepends = ros-lunar-bond
+ makedepends = ros-lunar-rospy
+ depends = ros-lunar-smclib
+ depends = ros-lunar-rospy
+ depends = util-linux
+ source = ros-lunar-bondpy-1.7.19-0.tar.gz::https://github.com/ros-gbp/bond_core-release/archive/release/lunar/bondpy/1.7.19-0.tar.gz
+ sha256sums = d167fea0c88e4da6cbe0ed7689a291d7be64d379b5a902852ae32658b19881c9
+
+pkgname = ros-lunar-bondpy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..68920f71bdc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - Python implementation of bond, a mechanism for checking when another process has terminated."
+url='http://www.ros.org/wiki/bondpy'
+
+pkgname='ros-lunar-bondpy'
+pkgver='1.7.19'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-lunar-catkin
+ ros-lunar-smclib
+ ros-lunar-bond
+ ros-lunar-rospy)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-lunar-smclib
+ ros-lunar-rospy)
+depends=(${ros_depends[@]}
+ util-linux)
+
+# Git version (e.g. for debugging)
+# _tag=release/lunar/bondpy/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/bond_core-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="bond_core-release-release-lunar-bondpy-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/bond_core-release/archive/release/lunar/bondpy/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('d167fea0c88e4da6cbe0ed7689a291d7be64d379b5a902852ae32658b19881c9')
+
+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
+}