# Maintainer: erwinkendo # Contributor: hauptmech _name=PCL pkgname=pcl-ros pkgver=1.6.0 pkgrel=1 pkgdesc="Point Cloud Library for ROS" arch=('i686' 'x86_64') url="http://pointclouds.org" license=('GPL') groups=() depends=('boost' 'eigen3' 'flann' 'vtk') optdepends=('qhull' 'openni' 'cuda-toolkit') makedepends=('git' 'cmake' 'python2') provides=('pcl-ros') conflicts=() replaces=() backup=() options=() install=() source=("http://www.pointclouds.org/assets/files/${pkgver}/${_name}-${pkgver}-Source.tar.bz2" "http://dev.pointclouds.org/attachments/download/925/pcl-1.6-rosintegration-v2.diff") noextract=() md5sums=('f83ca5d0ff290412b0807864b95eba26' 'eb3c4dd525cc574effb32d3b1ccd2a00') build() { cd "$srcdir/${_name}-${pkgver}-Source" patch -p0 <../pcl-1.6-rosintegration-v2.diff # Python2 FIX (without root privledges) mkdir "$srcdir/temp" ln -fs /usr/bin/python2 "$srcdir/temp/python" export PATH="$srcdir/temp":$PATH # BUILD HERE mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DCMAKE_BUILD_TYPE=Release -DSETUPTOOLS_DEB_LAYOUT=OFF -DUSE_ROS=ON make } package() { cd "$srcdir/${_name}-${pkgver}-Source/build" make DESTDIR="$pkgdir/" install }