diff options
author | Timon Engelke | 2018-09-10 19:10:24 +0200 |
---|---|---|
committer | Timon Engelke | 2018-09-10 19:10:24 +0200 |
commit | 800b43ef6cf8a35f80c97a1a3bcb6b57c88df08a (patch) | |
tree | 3aff0434982be5f26ee04cda690e0eb1c1690e4c | |
download | aur-800b43ef6cf8a35f80c97a1a3bcb6b57c88df08a.tar.gz |
Initial
-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..201ae4c0f210 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = ros-melodic-convex-decomposition + pkgdesc = ROS - Convex Decomposition Tool for Robot Model. + pkgver = 0.1.12 + pkgrel = 1 + url = http://codesuppository.blogspot.com + arch = any + license = MIT + makedepends = cmake + makedepends = ros-build-tools + makedepends = ros-melodic-catkin + makedepends = unzip + depends = unzip + source = ros-melodic-convex-decomposition-0.1.12-0.tar.gz::https://github.com/ros-gbp/convex_decomposition-release/archive/release/melodic/convex_decomposition/0.1.12-0.tar.gz + sha256sums = 853e052839ccfe26f6ae8d94e157ad06cfa7c520c3fe12cf33783107caeee369 + +pkgname = ros-melodic-convex-decomposition + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ff9fe5032e2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: Timon Engelke <aur@timonengelke.de> +pkgdesc="ROS - Convex Decomposition Tool for Robot Model." +url='http://codesuppository.blogspot.com' + +pkgname='ros-melodic-convex-decomposition' +pkgver='0.1.12' +_pkgver_patch=0 +arch=('any') +pkgrel=1 +license=('MIT') + +ros_makedepends=(ros-melodic-catkin) +makedepends=('cmake' 'ros-build-tools' + ${ros_makedepends[@]} + unzip) + +ros_depends=() +depends=(${ros_depends[@]} + unzip) + +# Git version (e.g. for debugging) +# _tag=release/melodic/convex_decomposition/${pkgver}-${_pkgver_patch} +# _dir=${pkgname} +# source=("${_dir}"::"git+https://github.com/ros-gbp/convex_decomposition-release.git"#tag=${_tag}) +# sha256sums=('SKIP') + +# Tarball version (faster download) +_dir="convex_decomposition-release-release-melodic-convex_decomposition-${pkgver}-${_pkgver_patch}" +source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/convex_decomposition-release/archive/release/melodic/convex_decomposition/${pkgver}-${_pkgver_patch}.tar.gz") +sha256sums=('853e052839ccfe26f6ae8d94e157ad06cfa7c520c3fe12cf33783107caeee369') + +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/python3 \ + -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \ + -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \ + -DPYTHON_BASENAME=-python3.7m \ + -DSETUPTOOLS_DEB_LAYOUT=OFF + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} + |