summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKartik Mohta2015-06-09 02:24:45 -0400
committerKartik Mohta2015-06-09 02:24:45 -0400
commitee6796c4a1c7af50d8352b9e07e1646e03dec99b (patch)
treee351d14b00835090d97ffc2ffaf79c7140708703 /PKGBUILD
downloadaur-ee6796c4a1c7af50d8352b9e07e1646e03dec99b.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
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
+}