Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

pcl-ros 1.6 pkgbuild

By: a guest on Jul 24th, 2012  |  syntax: Bash  |  size: 1.28 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: erwinkendo <erwinkendo@gmail.com>
  2. # Contributor: hauptmech <hauptmech@gmail.com>
  3. _name=PCL
  4. pkgname=pcl-ros
  5. pkgver=1.6.0
  6. pkgrel=1
  7. pkgdesc="Point Cloud Library for ROS"
  8. arch=('i686' 'x86_64')
  9. url="http://pointclouds.org"
  10. license=('GPL')
  11. groups=()
  12. depends=('boost' 'eigen3' 'flann' 'vtk')
  13. optdepends=('qhull' 'openni' 'cuda-toolkit')
  14. makedepends=('git' 'cmake' 'python2')
  15. provides=('pcl-ros')
  16. conflicts=()
  17. replaces=()
  18. backup=()
  19. options=()
  20. install=()
  21. source=("http://www.pointclouds.org/assets/files/${pkgver}/${_name}-${pkgver}-Source.tar.bz2"
  22.         "http://dev.pointclouds.org/attachments/download/925/pcl-1.6-rosintegration-v2.diff")
  23. noextract=()
  24. md5sums=('f83ca5d0ff290412b0807864b95eba26'
  25.          'eb3c4dd525cc574effb32d3b1ccd2a00')
  26.  
  27. build() {
  28.   cd "$srcdir/${_name}-${pkgver}-Source"
  29.   patch -p0 <../pcl-1.6-rosintegration-v2.diff
  30.   # Python2 FIX (without root privledges)
  31.   mkdir "$srcdir/temp"
  32.   ln -fs /usr/bin/python2 "$srcdir/temp/python"
  33.   export PATH="$srcdir/temp":$PATH
  34.   # BUILD HERE
  35.   mkdir build && cd build
  36.   cmake ..  -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DCMAKE_BUILD_TYPE=Release -DSETUPTOOLS_DEB_LAYOUT=OFF -DUSE_ROS=ON
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "$srcdir/${_name}-${pkgver}-Source/build"
  42.   make DESTDIR="$pkgdir/" install
  43. }