Skip to content

Instantly share code, notes, and snippets.

@hauptmech
Created April 11, 2012 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hauptmech/2358430 to your computer and use it in GitHub Desktop.
Save hauptmech/2358430 to your computer and use it in GitHub Desktop.
PKGBUILD for Yarp 2.3.15 on GCC 4.7
# 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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment