summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Chr├ętien2014-02-01 21:21:37 +0100
committerBenjamin Chr├ętien2014-02-01 21:24:23 +0100
commit414a5dc8998889f8379d932e09d333374cb1e131 (patch)
tree4862accf38835d33ac3ab9054f158810fd94a612
downloadaur-414a5dc8998889f8379d932e09d333374cb1e131.tar.gz
Add openni2 with pkg-config file + metapod + cpplog + updates
-rw-r--r--.SRCINFO21
-rwxr-xr-xPKGBUILD53
2 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f6d4834158c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = metapod-git
+ pkgdesc = META-Programming Optimized Dynamics library that provides robot dynamics algorithms.
+ pkgver = 1.0.7.r87.ga77d92e
+ pkgrel = 1
+ url = http://gazebosim.org/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ makedepends = pkg-config
+ depends = boost>=1.40
+ depends = eigen3
+ optdepends = urdfdom: urdfdom support
+ provides = metapod
+ conflicts = metapod
+ source = metapod::git+https://github.com/laas/metapod.git#branch=master
+ md5sums = SKIP
+
+pkgname = metapod-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..b439cd0f1c0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
+pkgname=metapod-git
+pkgver=1.0.7.r87.ga77d92e
+pkgrel=1
+pkgdesc="META-Programming Optimized Dynamics library that provides robot dynamics algorithms."
+arch=('i686' 'x86_64')
+url="http://gazebosim.org/"
+license=('BSD')
+depends=('boost>=1.40' 'eigen3')
+makedepends=('git' 'cmake' 'pkg-config')
+optdepends=('urdfdom: urdfdom support')
+provides=('metapod')
+conflicts=('metapod')
+
+_gitroot=https://github.com/laas
+_gitrepo=metapod
+
+_branch=master
+_dir=${_gitrepo}
+source=("${_dir}"::"git+${_gitroot}/${_gitrepo}.git"#branch=${_branch})
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${_dir}"
+ git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ # Get Git submodules
+ cd "${srcdir}/${_dir}"
+ git submodule init
+ git submodule update
+
+ # Create build directory
+ [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
+ cd "${srcdir}/build"
+
+ # Build project
+ cmake ${srcdir}/${_dir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ make
+}
+
+check() {
+ cd "${srcdir}/build"
+ make test
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="$pkgdir/" install
+}