summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0b68749f4715ea312419106ad3d08b08762676a (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
57
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=amino-git
pkgver=r1538.c979e7f
pkgrel=2
pkgdesc="Lightweight robotics utility library"
arch=('i686' 'x86_64')
url="https://www.github.com/golems/amino"
license=('BSD 3-Clause')
depends=('gcc' 'blas' 'lapack' 'maxima' 'flex' 'autoconf' 'autoconf-archive'
  'automake' 'libtool' 'git')
optdepends=('blender: used to convert mesh files'
            'sbcl: robot models'
            'quicklisp: robot models'
            'freeglut: GUI/visualization'
            'sdl2: GUI/visualization'
            '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() {

    msg "Configuring"

    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

    msg "Building the project"
    make
}

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

    msg "Installing files"
    make DESTDIR="${pkgdir}/" install
}