summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonçalo Camelo Neves Pereira2019-01-09 19:24:49 +0100
committerGonçalo Camelo Neves Pereira2019-01-09 19:24:49 +0100
commit7aa1335d707d2c1fa5b99d57ab27834a371c5473 (patch)
tree46a53294461cf6e79db108e980e137c6fa423e1a
parent149ac0c9c6216c77da7c2aaa97ddab65d0b1682b (diff)
downloadaur-7aa1335d707d2c1fa5b99d57ab27834a371c5473.tar.gz
New Version
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD96
2 files changed, 58 insertions, 54 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ce3bcdd7d9f..4ddd5ab8049 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,19 +8,19 @@ pkgbase = ros-melodic-robot
makedepends = cmake
makedepends = ros-build-tools
makedepends = ros-melodic-catkin
- depends = ros-melodic-joint-state-publisher
+ depends = ros-melodic-filters
depends = ros-melodic-ros-base
+ depends = ros-melodic-joint-state-publisher
+ depends = ros-melodic-executive-smach
depends = ros-melodic-urdf-parser-plugin
- depends = ros-melodic-kdl-parser
- depends = ros-melodic-control-msgs
- depends = ros-melodic-robot-state-publisher
- depends = ros-melodic-urdf
- depends = ros-melodic-geometry
depends = ros-melodic-xacro
- depends = ros-melodic-executive-smach
depends = ros-melodic-diagnostics
+ depends = ros-melodic-robot-state-publisher
depends = ros-melodic-kdl-parser-py
- depends = ros-melodic-filters
+ depends = ros-melodic-geometry
+ depends = ros-melodic-urdf
+ depends = ros-melodic-control-msgs
+ depends = ros-melodic-kdl-parser
source = ros-melodic-robot-1.4.1-0.tar.gz::https://github.com/ros-gbp/metapackages-release/archive/release/melodic/robot/1.4.1-0.tar.gz
sha256sums = 4f0efd47cf90e8a1f56602612d73ba032fbb231dec3091f53b795a7d67cbe02b
diff --git a/PKGBUILD b/PKGBUILD
index 20bbde900d8..8abccd1bc9a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
-# Script generated with import_catkin_packages.py
-# For more information: https://github.com/bchretien/arch-ros-stacks
+# Script generated with import_catkin_packages.py.
+# For more information: https://github.com/bchretien/arch-ros-stacks.
pkgdesc="ROS - A metapackage which extends ros_base and includes ROS libaries for any robot hardware."
url='http://www.ros.org/'
@@ -10,62 +10,66 @@ arch=('any')
pkgrel=1
license=('BSD')
-ros_makedepends=(ros-melodic-catkin)
-makedepends=('cmake' 'ros-build-tools'
- ${ros_makedepends[@]})
+ros_makedepends=(
+ ros-melodic-catkin
+)
-ros_depends=(ros-melodic-joint-state-publisher
- ros-melodic-ros-base
- ros-melodic-urdf-parser-plugin
- ros-melodic-kdl-parser
- ros-melodic-control-msgs
- ros-melodic-robot-state-publisher
- ros-melodic-urdf
- ros-melodic-geometry
- ros-melodic-xacro
- ros-melodic-executive-smach
- ros-melodic-diagnostics
- ros-melodic-kdl-parser-py
- ros-melodic-filters)
-depends=(${ros_depends[@]})
+makedepends=(
+ 'cmake'
+ 'ros-build-tools'
+ ${ros_makedepends[@]}
+)
-# Git version (e.g. for debugging)
-# _tag=release/melodic/robot/${pkgver}-${_pkgver_patch}
-# _dir=${pkgname}
-# source=("${_dir}"::"git+https://github.com/ros-gbp/metapackages-release.git"#tag=${_tag})
-# sha256sums=('SKIP')
+ros_depends=(
+ ros-melodic-filters
+ ros-melodic-ros-base
+ ros-melodic-joint-state-publisher
+ ros-melodic-executive-smach
+ ros-melodic-urdf-parser-plugin
+ ros-melodic-xacro
+ ros-melodic-diagnostics
+ ros-melodic-robot-state-publisher
+ ros-melodic-kdl-parser-py
+ ros-melodic-geometry
+ ros-melodic-urdf
+ ros-melodic-control-msgs
+ ros-melodic-kdl-parser
+)
+
+depends=(
+ ${ros_depends[@]}
+)
-# Tarball version (faster download)
_dir="metapackages-release-release-melodic-robot-${pkgver}-${_pkgver_patch}"
source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/metapackages-release/archive/release/melodic/robot/${pkgver}-${_pkgver_patch}.tar.gz")
sha256sums=('4f0efd47cf90e8a1f56602612d73ba032fbb231dec3091f53b795a7d67cbe02b')
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
+ # 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
+ # 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}
+ # Fix Python2/Python3 conflicts.
+ /usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${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/python3 \
- -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
- -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
- -DPYTHON_BASENAME=.cpython-37m \
- -DSETUPTOOLS_DEB_LAYOUT=OFF
- make
+ # 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
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
}