blob: 893cf9d3fb6d90696039d69ef4eb255facd1c14a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Yunhui Fu <yhfudev@gmail.com>
pkgname=libisam
pkgver=r13.df3154d
pkgrel=1
pkgdesc="iSAM is an optimization library for sparse nonlinear problems as encountered in simultaneous localization and mapping (SLAM)"
arch=('i686' 'x86_64')
license=('LGPL')
url='http://people.csail.mit.edu/kaess/isam/'
depends=('eigen' 'suitesparse')
makedepends=('cmake' 'make' 'gcc' 'git')
optdepends=('sdl')
conflicts=('libisam-git')
provides=('libisam')
source=(
#"{pkgname}-${pkgver}.tar.gz::http://people.csail.mit.edu/kaess/isam/isam_v1_7.tgz"
"${pkgname}::git+https://github.com/ipab-slmc/isam.git"
)
pkgver_git() {
cd "${srcdir}/${pkgname}"
#local ver="$(git show | grep commit | awk '{print $2}' )"
#printf "r%s" "${ver//[[:alpha:]]}"
#echo ${ver:0:7}
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
pkgver() {
pkgver_git
}
build4git() {
cd "${srcdir}/${pkgname}"
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF ..
make
}
build() {
build4git
}
package4git() {
cd "${srcdir}/${pkgname}/build"
make DESTDIR="$pkgdir/" install
mv "$pkgdir/usr/local/lib/" "$pkgdir/usr/lib/"
}
package() {
package4git
}
md5sums=(
'SKIP'
)
|