summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonçalo Camelo Neves Pereira2018-05-13 19:34:37 +0100
committerGonçalo Camelo Neves Pereira2018-05-13 19:34:37 +0100
commitd63c26b552f3d9baedfe6a433b5de45748a39896 (patch)
tree8193ba977247393e9e639562b77005a4d4939f75
downloadaur-d63c26b552f3d9baedfe6a433b5de45748a39896.tar.gz
Update
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD66
2 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..045b554d841
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = ros-melodic-diagnostic-common-diagnostics
+ pkgdesc = ROS - diagnostic_common_diagnostics.
+ pkgver = 1.9.3
+ pkgrel = 1
+ url = http://ros.org/wiki/diagnostic_common_diagnostics
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-diagnostic-updater
+ makedepends = ros-melodic-rostest
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-rospy
+ depends = ros-melodic-diagnostic-updater
+ depends = ros-melodic-tf
+ depends = ros-melodic-rospy
+ depends = python2-psutil
+ depends = hddtemp
+ source = ros-melodic-diagnostic-common-diagnostics-1.9.3-0.tar.gz::https://github.com/ros-gbp/diagnostics-release/archive/release/melodic/diagnostic_common_diagnostics/1.9.3-0.tar.gz
+ sha256sums = e9729593c5e73825e769d670d78ba809db061ffb344132201020eae878c1359c
+
+pkgname = ros-melodic-diagnostic-common-diagnostics
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6f154f4cb81
--- /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 - diagnostic_common_diagnostics."
+url='http://ros.org/wiki/diagnostic_common_diagnostics'
+
+pkgname='ros-melodic-diagnostic-common-diagnostics'
+pkgver='1.9.3'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-melodic-diagnostic-updater
+ ros-melodic-rostest
+ ros-melodic-catkin
+ ros-melodic-rospy)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-melodic-diagnostic-updater
+ ros-melodic-tf
+ ros-melodic-rospy)
+depends=(${ros_depends[@]}
+ python2-psutil
+ hddtemp)
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/diagnostic_common_diagnostics/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/diagnostics-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="diagnostics-release-release-melodic-diagnostic_common_diagnostics-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/diagnostics-release/archive/release/melodic/diagnostic_common_diagnostics/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('e9729593c5e73825e769d670d78ba809db061ffb344132201020eae878c1359c')
+
+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 2 ${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/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
+}