diff options
author | acxz | 2019-09-21 17:51:15 -0400 |
---|---|---|
committer | acxz | 2019-09-21 17:51:15 -0400 |
commit | ebfaf17937f99d583a0d091efcb7f3fe8c993845 (patch) | |
tree | 01b7541a4c3a8a3ca4b4e8869449526de1c4ac6d | |
download | aur-ebfaf17937f99d583a0d091efcb7f3fe8c993845.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 61 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c78b1cfd3a99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = ros-melodic-turtlebot3-simulations + pkgdesc = ROS - ROS packages for the turtlebot3 simulation (meta package) + pkgver = 1.2.0 + pkgrel = 1 + url = https://wiki.ros.org/turtlebot3_simulations + arch = any + license = Apache-2.0 + makedepends = cmake + makedepends = ros-build-tools + makedepends = ros-melodic-catkin + depends = ros-melodic-turtlebot3-fake + depends = ros-melodic-turtlebot3-gazebo + source = ros-melodic-turtlebot3-simulations-1.2.0.tar.gz::https://github.com/ROBOTIS-GIT/turtlebot3_simulations/archive/1.2.0.tar.gz + sha256sums = 6fbb4cf74b9777c3be3a751dd8d638df2570dd4478681b5eadf51dee32f57c5b + +pkgname = ros-melodic-turtlebot3-simulations + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..30302f9870f3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +pkgdesc="ROS - ROS packages for the turtlebot3 simulation (meta package)" +url='https://wiki.ros.org/turtlebot3_simulations' + +pkgname='ros-melodic-turtlebot3-simulations' +pkgver='1.2.0' +arch=('any') +pkgrel=1 +license=('Apache-2.0') + +ros_makedepends=( + ros-melodic-catkin +) + +makedepends=( + 'cmake' + 'ros-build-tools' + ${ros_makedepends[@]} +) + +ros_depends=( + ros-melodic-turtlebot3-fake + ros-melodic-turtlebot3-gazebo +) + +depends=( + ${ros_depends[@]} +) + +_dir="turtlebot3_simulations-${pkgver}/turtlebot3_simulations" +source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ROBOTIS-GIT/turtlebot3_simulations/archive/${pkgver}.tar.gz") +sha256sums=('6fbb4cf74b9777c3be3a751dd8d638df2570dd4478681b5eadf51dee32f57c5b') + +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 +} |