diff options
author | Timon Engelke | 2018-09-11 13:24:07 +0200 |
---|---|---|
committer | Timon Engelke | 2018-09-11 13:24:07 +0200 |
commit | 4c373b36bd37458ceb8bea8d4fd13740ee1b422f (patch) | |
tree | abb3df93e0e8e0662ede3128c91ef821c9aa5b2f | |
download | aur-4c373b36bd37458ceb8bea8d4fd13740ee1b422f.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..38bc04792523 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ros-melodic-pr2-machine + pkgdesc = ROS - This package contains the xxx.machine files that describe the different hosts a node can be spawned on. + pkgver = 1.12.3 + pkgrel = 1 + url = http://wiki.ros.org/pr2_machine + arch = any + license = BSD + makedepends = cmake + makedepends = ros-build-tools + makedepends = ros-melodic-catkin + source = ros-melodic-pr2-machine-1.12.3-0.tar.gz::https://github.com/pr2-gbp/pr2_common-release/archive/release/melodic/pr2_machine/1.12.3-0.tar.gz + sha256sums = 6f00fa41d1506fb75a2fedc3beabf6d3811d73c8a8a4da211714e3591f458021 + +pkgname = ros-melodic-pr2-machine + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dfb79f8e37ea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Timon Engelke <aur@timonengelke.de> +pkgdesc="ROS - This package contains the xxx.machine files that describe the different hosts a node can be spawned on." +url='http://wiki.ros.org/pr2_machine' + +pkgname='ros-melodic-pr2-machine' +pkgver='1.12.3' +_pkgver_patch=0 +arch=('any') +pkgrel=1 +license=('BSD') + +ros_makedepends=(ros-melodic-catkin) +makedepends=('cmake' 'ros-build-tools' + ${ros_makedepends[@]}) + +ros_depends=() +depends=(${ros_depends[@]}) + +_dir="pr2_common-release-release-melodic-pr2_machine-${pkgver}-${_pkgver_patch}" +source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/pr2-gbp/pr2_common-release/archive/release/melodic/pr2_machine/${pkgver}-${_pkgver_patch}.tar.gz") +sha256sums=('6f00fa41d1506fb75a2fedc3beabf6d3811d73c8a8a4da211714e3591f458021') + +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 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.7 \ + -DPYTHON_LIBRARY=/usr/lib/libpython3.7.so \ + -DPYTHON_BASENAME=-python3.7 \ + -DSETUPTOOLS_DEB_LAYOUT=OFF + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} |