summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracxz2020-02-16 00:35:03 -0500
committeracxz2020-02-16 00:35:03 -0500
commit8767fe0ad0d288cf66bdc23c11d95a9e94306aa8 (patch)
tree13d7d70f5036daeac3384655f60802e6644792e5
downloadaur-8767fe0ad0d288cf66bdc23c11d95a9e94306aa8.tar.gz
create ros-melodic-rotors-hil-interface package
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD71
2 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..71d259a85d9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = ros-melodic-rotors-hil-interface
+ pkgdesc = ROS - RotorS Hardware-in-the-loop interface package
+ pkgver = 2.2.3
+ pkgrel = 1
+ url = https://wiki.ros.org/rotors_hil_interface
+ arch = i686
+ arch = x86_64
+ arch = aarch64
+ arch = armv7h
+ arch = armv6h
+ license = ASL 2.0
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-cmake-modules
+ makedepends = ros-melodic-geometry-msgs
+ makedepends = ros-melodic-mav-msgs
+ makedepends = ros-melodic-mavros
+ makedepends = ros-melodic-mavros-msgs
+ makedepends = ros-melodic-roscpp
+ makedepends = ros-melodic-sensor-msgs
+ depends = ros-melodic-geometry-msgs
+ depends = ros-melodic-mav-msgs
+ depends = ros-melodic-mavros
+ depends = ros-melodic-mavros-msgs
+ depends = ros-melodic-roscpp
+ depends = ros-melodic-sensor-msgs
+ source = ros-melodic-rotors-hil-interface-2.2.3.tar.gz::https://github.com/ethz-asl/rotors_simulator/archive/2.2.3.tar.gz
+ sha256sums = 46e6be40ebd08ba41a4a532c1774228d240d11aa39ad82f9ab50e445dc4a6f20
+
+pkgname = ros-melodic-rotors-hil-interface
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f95c256e21e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# Script generated with import_catkin_packages.py.
+# For more information: https://github.com/bchretien/arch-ros-stacks.
+pkgdesc="ROS - RotorS Hardware-in-the-loop interface package"
+url='https://wiki.ros.org/rotors_hil_interface'
+
+pkgname='ros-melodic-rotors-hil-interface'
+pkgver='2.2.3'
+arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
+pkgrel=1
+license=('ASL 2.0')
+
+ros_makedepends=(
+ ros-melodic-catkin
+ ros-melodic-cmake-modules
+ ros-melodic-geometry-msgs
+ ros-melodic-mav-msgs
+ ros-melodic-mavros
+ ros-melodic-mavros-msgs
+ ros-melodic-roscpp
+ ros-melodic-sensor-msgs
+)
+
+makedepends=(
+ cmake
+ ros-build-tools
+ ${ros_makedepends[@]}
+)
+
+ros_depends=(
+ ros-melodic-geometry-msgs
+ ros-melodic-mav-msgs
+ ros-melodic-mavros
+ ros-melodic-mavros-msgs
+ ros-melodic-roscpp
+ ros-melodic-sensor-msgs
+)
+
+depends=(
+ ${ros_depends[@]}
+)
+
+_dir="rotors_simulator-${pkgver}/rotors_hil_interface"
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ethz-asl/rotors_simulator/archive/${pkgver}.tar.gz")
+sha256sums=('46e6be40ebd08ba41a4a532c1774228d240d11aa39ad82f9ab50e445dc4a6f20')
+
+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 the 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 the project.
+ cmake ${srcdir}/${_dir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}