summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonçalo Camelo Neves Pereira2018-05-13 19:49:31 +0100
committerGonçalo Camelo Neves Pereira2018-05-13 19:49:31 +0100
commitf535c82f6c85cf976d7afde9fe925defc4da2c4a (patch)
tree0d281ad4fbd3c2aa5963ce0092faad42d5d0407c
downloadaur-ros-melodic-srdfdom.tar.gz
Update
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD70
2 files changed, 97 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..971e9758b78
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = ros-melodic-srdfdom
+ pkgdesc = ROS - Parser for Semantic Robot Description Format (SRDF).
+ pkgver = 0.5.1
+ pkgrel = 1
+ url = http://ros.org/wiki/srdfdom
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-urdfdom-py
+ makedepends = ros-melodic-urdf
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-cmake-modules
+ makedepends = boost
+ makedepends = console-bridge
+ makedepends = tinyxml
+ makedepends = urdfdom-headers
+ depends = ros-melodic-urdfdom-py
+ depends = boost
+ depends = console-bridge
+ depends = tinyxml
+ depends = urdfdom-headers
+ source = ros-melodic-srdfdom-0.5.1-0.tar.gz::https://github.com/ros-gbp/srdfdom-release/archive/release/melodic/srdfdom/0.5.1-0.tar.gz
+ sha256sums = 97b4cf0327af9082df3270024ceaa89d6b577bb2cbc09a5b19838557189e96f1
+
+pkgname = ros-melodic-srdfdom
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6cf0202291c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,70 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - Parser for Semantic Robot Description Format (SRDF)."
+url='http://ros.org/wiki/srdfdom'
+
+pkgname='ros-melodic-srdfdom'
+pkgver='0.5.1'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-melodic-urdfdom-py
+ ros-melodic-urdf
+ ros-melodic-catkin
+ ros-melodic-cmake-modules)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ boost
+ console-bridge
+ tinyxml
+ urdfdom-headers)
+
+ros_depends=(ros-melodic-urdfdom-py)
+depends=(${ros_depends[@]}
+ boost
+ console-bridge
+ tinyxml
+ urdfdom-headers)
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/srdfdom/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/srdfdom-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="srdfdom-release-release-melodic-srdfdom-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/srdfdom-release/archive/release/melodic/srdfdom/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('97b4cf0327af9082df3270024ceaa89d6b577bb2cbc09a5b19838557189e96f1')
+
+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 2 ${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/python2 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+ -DPYTHON_BASENAME=-python2.7 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}