diff options
author | Benjamin Chrétien | 2015-06-20 19:58:24 +0900 |
---|---|---|
committer | Benjamin Chrétien | 2015-06-20 19:58:24 +0900 |
commit | 727330d8ed3e5321a43459b55b201cabb8cc6d91 (patch) | |
tree | 7e2c2676c96d5224ebcc8b0839f9685c978a3260 | |
download | aur-727330d8ed3e5321a43459b55b201cabb8cc6d91.tar.gz |
jade: add desktop and its dependencies
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f0a184b6560f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ros-jade-ivcon + pkgdesc = ROS - Mesh Conversion Utility Used to generate .iv files from .stl files. + pkgver = 0.1.5 + pkgrel = 1 + url = https://sourceforge.net/projects/ivcon/ + arch = any + license = GPL + makedepends = cmake + makedepends = git + makedepends = ros-build-tools + makedepends = ros-jade-catkin + source = ivcon::git+https://github.com/ros-gbp/ivcon-release.git#tag=release/jade/ivcon/0.1.5-0 + md5sums = SKIP + +pkgname = ros-jade-ivcon + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..39b0e3e98345 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Script generated with import_catkin_packages.py +# For more information: https://github.com/bchretien/arch-ros-stacks +pkgdesc="ROS - Mesh Conversion Utility Used to generate .iv files from .stl files." +url='https://sourceforge.net/projects/ivcon/' + +pkgname='ros-jade-ivcon' +pkgver='0.1.5' +_pkgver_patch=0 +arch=('any') +pkgrel=1 +license=('GPL') + +ros_makedepends=(ros-jade-catkin) +makedepends=('cmake' 'git' 'ros-build-tools' + ${ros_makedepends[@]}) + +ros_depends=() +depends=(${ros_depends[@]}) + +_tag=release/jade/ivcon/${pkgver}-${_pkgver_patch} +_dir=ivcon +source=("${_dir}"::"git+https://github.com/ros-gbp/ivcon-release.git"#tag=${_tag}) +md5sums=('SKIP') + +build() { + # Use ROS environment variables + source /usr/share/ros-build-tools/clear-ros-env.sh + [ -f /opt/ros/jade/setup.bash ] && source /opt/ros/jade/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/jade \ + -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 +} |