summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKen2016-09-16 21:48:09 +0200
committerKen2016-09-16 21:48:09 +0200
commit5355db3d9841c70f025ff22d017578e5222ac594 (patch)
tree4b35951257dbe5026c2dea5c2855c092022c6b89 /PKGBUILD
downloadaur-5355db3d9841c70f025ff22d017578e5222ac594.tar.gz
first commit on ARGoS simulator pkgbuild
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..be51681bf13
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Ken Hasselmann <arch AT kenh DOT fr>
+
+pkgname=argos3-git
+_gitname=argos3
+pkgver=3.0.0.beta43.r6.gb16f6be
+pkgrel=1
+
+pkgdesc="ARGoS 3 Large-scale robot simulator"
+arch=('i686' 'x86_64')
+url="http://www.argos-sim.info"
+license=('MIT')
+
+depends=('freeimage>=3.15' 'qt4>=4.6' 'freeglut>=2.6.0' 'libxi' 'libxmu' 'lua' 'doxygen>=1.7.3' 'graphviz>=2.28' 'asciidoc>=8.6.2')
+makedepends=('gcc>=4.3' 'git' 'cmake>=2.6')
+
+source=('git://github.com/ilpincy/argos3.git')
+# sha256sums=('8a4f7ae34558b2b858851a233f3d0b968be1daf091ece0adc04cfa5a7b74cddc')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ # Use the tag of the last commit
+ git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+ mkdir build_simulator
+ cd build_simulator
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ../src
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ cd build_simulator
+ make DESTDIR="$pkgdir/" doc
+ make DESTDIR="$pkgdir/" install
+ mv $pkgdir/usr/doc $pkgdir/usr/share/
+}
+
+# vim:set ts=2 sw=2 et: