summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormajor major2017-12-18 04:22:52 +0100
committermajor major2017-12-18 04:22:52 +0100
commit159659987c76ec00ef6ccf9d704fbbebd56e8892 (patch)
tree9b4db24e17e8248df138acd29f9edc58d4257b68
downloadaur-159659987c76ec00ef6ccf9d704fbbebd56e8892.tar.gz
first commit of version git_20170730 used by a lot of packages which are using g2o
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD38
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..54115b8469f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = g2o
+ pkgdesc = A General Framework for Graph Optimization
+ pkgver = 20170730_git
+ pkgrel = 1
+ url = https://github.com/RainerKuemmerle/g2o
+ arch = i686
+ arch = x86_64
+ arch = armv7
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ depends = suitesparse
+ depends = qt5-base
+ depends = eigen3
+ depends = glu
+ optdepends = libqglviewer: for building the g2o_viewer app
+ provides = g2o
+ conflicts = g2o-svn
+ conflicts = g2o-git
+ source = g2o::https://github.com/RainerKuemmerle/g2o/archive/20170730_git.tar.gz
+ sha256sums = 799a7a943de423f7514c6cfdc7ed1c7393a15a73ff88aa07ad3fdd571d777d22
+
+pkgname = g2o
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37b275a69b0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Kartik Mohta <kartikmohta@gmail.com>
+pkgname=g2o
+pkgver=20170730_git
+pkgrel=1
+pkgdesc="A General Framework for Graph Optimization"
+arch=('i686' 'x86_64' 'armv7')
+url="https://github.com/RainerKuemmerle/g2o"
+license=('BSD')
+groups=()
+depends=('suitesparse' 'qt5-base' 'eigen3' 'glu')
+optdepends=('libqglviewer: for building the g2o_viewer app')
+makedepends=('git' 'cmake')
+provides=('g2o')
+conflicts=('g2o-svn' 'g2o-git')
+options=()
+
+source=($pkgname::https://github.com/RainerKuemmerle/g2o/archive/20170730_git.tar.gz)
+sha256sums=(799a7a943de423f7514c6cfdc7ed1c7393a15a73ff88aa07ad3fdd571d777d22)
+
+#pkgver() {
+# cd "$pkgname"
+# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+#}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ mkdir -p build
+ cd build
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DG2O_BUILD_APPS=ON \
+ -DG2O_BUILD_EXAMPLES=OFF
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/build"
+ make DESTDIR="$pkgdir" install
+}