Created
April 11, 2012 10:19
-
-
Save hauptmech/2358430 to your computer and use it in GitHub Desktop.
PKGBUILD for Yarp 2.3.15 on GCC 4.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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