Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: hauptmech <hauptmech@gmail.com>
- pkgname=pcl-ros
- pkgver=1.5.1
- pkgrel=1
- pkgdesc="Point Cloud Library for ROS"
- arch=('i686' 'x86_64')
- url="http://pointclouds.org"
- license=('GPL')
- groups=()
- depends=()
- makedepends=('git' 'cmake' 'python2')
- provides=('pcl-ros')
- conflicts=()
- replaces=()
- backup=()
- options=()
- install=
- source=()
- noextract=()
- md5sums=() #generate with 'makepkg -g'
- _gitroot=https://hauptmech@github.com/hauptmech/pcl.git
- _gitname=pcl
- _branch=arch
- build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone -b "$_branch" "$_gitroot" "$_gitname"
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
- # Python2 FIX
- mkdir /usr/local/bin/alt
- ln -s /usr/bin/python2 /usr/local/bin/alt/python
- export PATH=/usr/local/bin/alt:$PATH
- #
- # BUILD HERE
- #
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -DSETUPTOOLS_DEB_LAYOUT=OFF -DUSE_ROS=ON
- make
- }
- package() {
- cd "$srcdir/$_gitname-build/build"
- make DESTDIR="$pkgdir/" install
- # Python2 FIX restore
- rm /usr/local/bin/alt/python
- }
- # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement