summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdministrator2015-11-27 10:41:42 +0100
committerAdministrator2015-11-27 10:41:42 +0100
commit387e1f631e3ae667ee2ef7fd6d6ea3dfa2011284 (patch)
tree2c9e1f8023f3342daa3166ed51bb0b8a8c18b8b9
downloadaur-387e1f631e3ae667ee2ef7fd6d6ea3dfa2011284.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..9c44171e2f0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = ceres-solver
+ pkgdesc = Solver for nonlinear least squares problems
+ pkgver = 1.11.0
+ pkgrel = 1
+ url = https://code.google.com/p/ceres-solver/
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = gcc-libs
+ makedepends = cmake
+ depends = google-glog>=0.3.4
+ depends = eigen>=3.2.7
+ depends = suitesparse>=4.4.5
+ depends = protobuf>=2.6.1
+ optdepends = openmp
+ options = staticlibs
+ source = http://ceres-solver.org/ceres-solver-1.11.0.tar.gz
+ sha256sums = 4d666cc33296b4c5cd77bad18ffc487b3223d4bbb7d1dfb342ed9a87dc9af844
+
+pkgname = ceres-solver
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..15617d73965
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Contributor: fneuhaus <fneuhaus@uni-koblenz.de>
+
+pkgname=ceres-solver
+pkgver=1.11.0
+pkgrel=1
+pkgdesc="Solver for nonlinear least squares problems"
+arch=('i686' 'x86_64')
+url="https://code.google.com/p/ceres-solver/"
+license=('LGPL')
+makedepends=('gcc-libs' 'cmake')
+depends=('google-glog>=0.3.4' 'eigen>=3.2.7'
+ 'suitesparse>=4.4.5' 'protobuf>=2.6.1')
+optdepends=('openmp')
+source=("http://ceres-solver.org/ceres-solver-1.11.0.tar.gz")
+sha256sums=("4d666cc33296b4c5cd77bad18ffc487b3223d4bbb7d1dfb342ed9a87dc9af844")
+options=('staticlibs')
+
+_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
+ '-D CMAKE_INSTALL_PREFIX=/usr'
+ '-D EIGENSPARSE=ON'
+ '-D CXX11=ON')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ mkdir -p ./build
+ cd ./build
+ cmake ${_cmakeopts[@]} ../
+ make -j9
+}
+
+package ()
+{
+ cd $srcdir/$pkgname-$pkgver/build/
+ make DESTDIR=$pkgdir install
+ install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}