Advertisement
Guest User

Untitled

a guest
Jul 27th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.43 KB | None | 0 0
  1. # Maintainer: erwinkendo <erwinkendo@gmail.com>
  2. # Contributor: hauptmech <hauptmech@gmail.com>
  3. # Contributor: TomBoshoven <tomboshoven@gmail.com>
  4. pkgname=pcl-ros
  5. pkgver=20120727
  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=()
  13. makedepends=('git' 'cmake' 'python2')
  14. provides=('pcl-ros')
  15. conflicts=()
  16. replaces=()
  17. backup=()
  18. options=()
  19. install=
  20. source=()
  21. noextract=()
  22. md5sums=() #generate with 'makepkg -g'
  23.  
  24. _gitroot=https://hauptmech@github.com/hauptmech/pcl.git
  25. _gitname=pcl
  26. _branch=arch
  27.  
  28.  
  29. build() {
  30.   cd "$srcdir"
  31.   msg "Connecting to GIT server...."
  32.  
  33.   if [[ -d "$_gitname" ]]; then
  34.     cd "$_gitname" && git pull origin
  35.     msg "The local files are updated."
  36.   else
  37.     git clone -b "$_branch" "$_gitroot" "$_gitname"
  38.   fi
  39.  
  40.   msg "GIT checkout done or server timeout"
  41.   msg "Starting build..."
  42.  
  43.   rm -rf "$srcdir/$_gitname-build"
  44.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  45.   cd "$srcdir/$_gitname-build"
  46.  
  47.   #
  48.   # BUILD HERE
  49.   #
  50.   mkdir build
  51.   cd build
  52.   cmake ..  -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DSETUPTOOLS_DEB_LAYOUT=OFF -DUSE_ROS=ON -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 -DPYTHON_VERSION_XDOTY:STRING=2.7
  53.   make
  54.  
  55. }
  56.  
  57. package() {
  58.   cd "$srcdir/$_gitname-build/build"
  59.   make DESTDIR="$pkgdir/" install
  60.   # Python2 FIX restore
  61.   rm /usr/local/bin/alt/python
  62. }
  63.  
  64. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement