summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracxz2019-11-28 20:27:44 -0500
committeracxz2019-11-28 20:27:44 -0500
commit98acabe6741ee68e71bea118211308a676a8a0ca (patch)
treee4c5986efabdfac8b8fe838d30a142bc9d0549f2
downloadaur-98acabe6741ee68e71bea118211308a676a8a0ca.tar.gz
initial commit
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD71
2 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6d97932d2a8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = ros-melodic-teleop-twist-joy
+ pkgdesc = ROS - Generic joystick teleop for twist robots.
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = https://wiki.ros.org/teleop_twist_joy
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-geometry-msgs
+ makedepends = ros-melodic-joy
+ makedepends = ros-melodic-roscpp
+ makedepends = ros-melodic-roslaunch
+ makedepends = ros-melodic-roslint
+ makedepends = ros-melodic-rostest
+ makedepends = ros-melodic-sensor-msgs
+ depends = eigen
+ depends = ros-melodic-geometry-msgs
+ depends = ros-melodic-joy
+ depends = ros-melodic-roscpp
+ depends = ros-melodic-sensor-msgs
+ source = ros-melodic-teleop-twist-joy-0.1.3.tar.gz::https://github.com/ros-teleop/teleop_twist_joy/archive/0.1.3.tar.gz
+ sha256sums = 4b83d6e52e9334f63182af5cf6ebbfb1c1e38f009f39542d32483479bd9c80d2
+
+pkgname = ros-melodic-teleop-twist-joy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b244c52416e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+pkgdesc="ROS - Generic joystick teleop for twist robots."
+url='https://wiki.ros.org/teleop_twist_joy'
+
+pkgname='ros-melodic-teleop-twist-joy'
+pkgver='0.1.3'
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(
+ ros-melodic-catkin
+ ros-melodic-geometry-msgs
+ ros-melodic-joy
+ ros-melodic-roscpp
+ ros-melodic-roslaunch
+ ros-melodic-roslint
+ ros-melodic-rostest
+ ros-melodic-sensor-msgs
+)
+
+makedepends=(
+ 'cmake'
+ 'ros-build-tools'
+ ${ros_makedepends[@]}
+)
+
+ros_depends=(
+ ros-melodic-geometry-msgs
+ ros-melodic-joy
+ ros-melodic-roscpp
+ ros-melodic-sensor-msgs
+)
+
+depends=(
+ 'eigen'
+ ${ros_depends[@]}
+)
+
+_dir="teleop_twist_joy-${pkgver}"
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros-teleop/teleop_twist_joy/archive/${pkgver}.tar.gz")
+sha256sums=('4b83d6e52e9334f63182af5cf6ebbfb1c1e38f009f39542d32483479bd9c80d2')
+
+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 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
+ -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
+ -DPYTHON_BASENAME=.cpython-37m \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}