summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonçalo Camelo Neves Pereira2018-05-08 15:14:53 +0100
committerGonçalo Camelo Neves Pereira2018-05-08 15:14:53 +0100
commiteaa20f820b89b9109b9933a8af3eb8024dfe7e34 (patch)
tree0c94e4a1d62225788249b7d5c10010c37bd87c95
downloadaur-eaa20f820b89b9109b9933a8af3eb8024dfe7e34.tar.gz
Update
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD62
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..29d2d1ba96b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ros-melodic-orocos-kdl
+ pkgdesc = ROS - This package contains a recent version of the Kinematics and Dynamics Library (KDL), distributed by the Orocos Project.
+ pkgver = 1.4.0
+ pkgrel = 1
+ url = http://wiki.ros.org/orocos_kdl
+ arch = any
+ license = LGPL
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = eigen3
+ depends = ros-melodic-catkin
+ depends = eigen3
+ depends = pkg-config
+ source = ros-melodic-orocos-kdl-1.4.0-0.tar.gz::https://github.com/orocos/orocos-kdl-release/archive/release/melodic/orocos_kdl/1.4.0-0.tar.gz
+ sha256sums = aa01563f804f8c52c6403b872b0a321abd916083757aebf25ac9530c7798830a
+
+pkgname = ros-melodic-orocos-kdl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b4e4d4de286
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - This package contains a recent version of the Kinematics and Dynamics Library (KDL), distributed by the Orocos Project."
+url='http://wiki.ros.org/orocos_kdl'
+
+pkgname='ros-melodic-orocos-kdl'
+pkgver='1.4.0'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('LGPL')
+
+ros_makedepends=()
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ eigen3)
+
+ros_depends=(ros-melodic-catkin)
+depends=(${ros_depends[@]}
+ eigen3
+ pkg-config)
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/orocos_kdl/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/orocos/orocos-kdl-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="orocos-kdl-release-release-melodic-orocos_kdl-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/orocos/orocos-kdl-release/archive/release/melodic/orocos_kdl/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('aa01563f804f8c52c6403b872b0a321abd916083757aebf25ac9530c7798830a')
+
+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
+}