public
Created

PKGBUILD for Yarp 2.3.15 on GCC 4.7

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# Contributor: Victor Noël
 
pkgname=yarp
pkgver=2.3.15
pkgrel=5
pkgdesc="Yet Another Robot Platform"
url="http://eris.liralab.it/yarp/"
license=('GPL')
arch=('any')
makedepends=('cmake')
depends=()
options=(!libtool)
source=(http://downloads.sourceforge.net/yarp0/$pkgname-$pkgver.tar.gz)
build() {
cd $srcdir
 
cd $pkgname-$pkgver
if [ ! -d ace4yarp ]; then
./scripts/fetch-ace.sh
fi
cd $srcdir
 
rm -rf build-$pkgname-$pkgver
mkdir build-$pkgname-$pkgver
cd build-$pkgname-$pkgver
 
sed -i ../$pkgname-$pkgver/src/yarpmanager/libymanager/src/localbroker.cpp -f - <<'==='
/<stdlib.h>/ a \
#include <unistd.h>
===
 
cmake ../$pkgname-$pkgver -DCMAKE_INSTALL_PREFIX=/usr/local -DCREATE_SHARED_LIBRARY=TRUE -DCMAKE_BUILD_TYPE=RelWithDebInfo
make
}
 
package() {
cd $srcdir/build-$pkgname-$pkgver
 
make DESTDIR=$pkgdir install
}
 
md5sums=('58912d7d1a6ed3347fc15ef7236899e1')

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.