summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d0541d0d9986485c45494478048795926b058c3 (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
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=amino-git
pkgver=r1728.f8926ae
pkgrel=1
pkgdesc="Lightweight robotics utility library"
arch=('i686' 'x86_64')
url="https://www.github.com/golems/amino"
license=('BSD 3-Clause')
depends=('gcc' 'gcc-fortran' 'cblas' 'lapack' 'maxima' 'flex' 'autoconf'
         'autoconf-archive' 'automake' 'libtool' 'git' 'freeglut' 'sdl2' 'nlopt'
         'octomap')
optdepends=('blender: used to convert mesh files'
            'sbcl: robot models'
            'quicklisp: robot models'
            'povray: raytracing'
            'ffmpeg: raytracing'
            'fcl: motion planning'
            'ompl: motion planning'
            'jdk-openjdk: java bindings'
            'coin-or-clp: optimization'
            'glpk: optimization'
            'lpsolve: optimization')
_name=amino
source=("git+https://github.com/golems/${_name}.git")
md5sums=('SKIP')

pkgver() {
  cd "${_name}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}/${_name}"

    git submodule init && git submodule update && autoreconf -i
    ./configure

    # Applying a fix to configured makefile
    # Requires cblas along with openblas since openblas package does not support
    # blas (openblas upstream problem)
    sed -i 's/-lblas/-lblas -lcblas/g' Makefile

    make
}

package() {
    cd "${srcdir}/${_name}"
    make DESTDIR="${pkgdir}/" install
}