Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: erwinkendo <erwinkendo@gmail.com>
- # Contributor: hauptmech <hauptmech@gmail.com>
- # Contributor: TomBoshoven <tomboshoven@gmail.com>
- pkgname=pcl-ros
- pkgver=20120727
- 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"
- #
- # BUILD HERE
- #
- mkdir build
- cd build
- 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
- 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