summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD17
2 files changed, 16 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4b75fec18c0..d0d28f1d982 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
-pkgbase = ceres-solver
- pkgdesc = Solver for nonlinear least squares problems
+pkgbase = ceres-solver-legacy
+ pkgdesc = Solver for nonlinear least squares problems. Legacy version needed for google cartographer
pkgver = 1.14.0
- pkgrel = 3
+ pkgrel = 4
url = http://ceres-solver.org/
arch = i686
arch = x86_64
@@ -11,9 +11,11 @@ pkgbase = ceres-solver
depends = eigen>=3.3.0
depends = suitesparse>=4.4.5
optdepends = openmp
+ provides = ceres-solver
+ conflicts = ceres-solver
options = staticlibs
source = http://ceres-solver.org/ceres-solver-1.14.0.tar.gz
sha256sums = 4744005fc3b902fed886ea418df70690caa8e2ff6b5a90f3dd88a3d291ef8e8e
-pkgname = ceres-solver
+pkgname = ceres-solver-legacy
diff --git a/PKGBUILD b/PKGBUILD
index 70a346d5fa4..d11f9fe1658 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
# Contributor: dtag <dtag00@gmail.com>
-pkgname=ceres-solver
+pkgname=ceres-solver-legacy
pkgver=1.14.0
-pkgrel=3
-pkgdesc="Solver for nonlinear least squares problems"
+pkgrel=4
+pkgdesc="Solver for nonlinear least squares problems. Legacy version needed for google cartographer"
arch=('i686' 'x86_64')
url="http://ceres-solver.org/"
license=('LGPL')
@@ -12,9 +12,12 @@ depends=('google-glog>=0.3.4' 'eigen>=3.3.0'
'suitesparse>=4.4.5')
optdepends=('openmp')
source=("http://ceres-solver.org/ceres-solver-1.14.0.tar.gz")
-sha256sums=("4744005fc3b902fed886ea418df70690caa8e2ff6b5a90f3dd88a3d291ef8e8e")
+sha256sums=('4744005fc3b902fed886ea418df70690caa8e2ff6b5a90f3dd88a3d291ef8e8e')
options=('staticlibs')
+provides=(ceres-solver)
+conflicts=(ceres-solver)
+
_cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
'-D CMAKE_INSTALL_PREFIX=/usr'
'-D EIGENSPARSE=ON'
@@ -24,7 +27,7 @@ _cmakeopts=('-D CMAKE_BUILD_TYPE=Release'
'-D BUILD_EXAMPLES=OFF')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd $srcdir/ceres-solver-$pkgver
mkdir -p ./build
cd ./build
@@ -34,7 +37,7 @@ build() {
package ()
{
- cd $srcdir/$pkgname-$pkgver/build/
+ cd $srcdir/ceres-solver-$pkgver/build/
make DESTDIR=$pkgdir install
- install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/ceres-solver/LICENSE"
}