summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKartik Mohta2015-06-09 02:24:45 -0400
committerKartik Mohta2015-06-09 02:24:45 -0400
commitee6796c4a1c7af50d8352b9e07e1646e03dec99b (patch)
treee351d14b00835090d97ffc2ffaf79c7140708703
downloadaur-ee6796c4a1c7af50d8352b9e07e1646e03dec99b.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD36
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8448077570e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = g2o-git
+ pkgdesc = A General Framework for Graph Optimization
+ pkgver = r692.0fb5b33
+ pkgrel = 1
+ url = https://github.com/RainerKuemmerle/g2o
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ depends = suitesparse
+ depends = qt4
+ depends = eigen3
+ depends = glu
+ provides = g2o
+ conflicts = g2o-svn
+ source = g2o-git::git+https://github.com/RainerKuemmerle/g2o.git
+ md5sums = SKIP
+
+pkgname = g2o-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b8ddc3516fc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Kartik Mohta <kartikmohta@gmail.com>
+pkgname=g2o-git
+pkgver=r692.0fb5b33
+pkgrel=1
+pkgdesc="A General Framework for Graph Optimization"
+arch=('i686' 'x86_64')
+url="https://github.com/RainerKuemmerle/g2o"
+license=('BSD')
+groups=()
+depends=('suitesparse' 'qt4' 'eigen3' 'glu')
+makedepends=('git' 'cmake')
+provides=('g2o')
+conflicts=('g2o-svn')
+options=()
+source=($pkgname::git+https://github.com/RainerKuemmerle/g2o.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+
+ mkdir -p build
+ cd build
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON -DG2O_BUILD_APPS=OFF \
+ -DG2O_BUILD_EXAMPLES=OFF
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname/build"
+ make DESTDIR="$pkgdir" install
+}