blob: b7380b82f015d49604af5667b218644379c24a36 (
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
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=control-toolbox-core
pkgver=3.0.2
pkgrel=1
pkgdesc="The Control Toolbox - Core Components"
arch=('i686' 'x86_64')
url="https://github.com/ethz-adrl/control-toolbox"
license=('BSD-2-Clause')
makedepends=(cmake)
depends=(lapack eigen boost openmp kindr matplotlib-cpp)
optdepends=(hpipm coin-or-ipopt cppad cppadcodegen)
source=("${pkgname}-${pkgver}::https://github.com/ethz-adrl/control-toolbox/archive/${pkgver}.tar.gz")
sha256sums=('086b33946d27ab64726536f0b0185c72a3ebb51e0a360f537126e3e57c499844')
_pkgname=control-toolbox
build() {
mkdir -p "${srcdir}/${_pkgname}-${pkgver}/ct_core/build"
cd "${srcdir}/${_pkgname}-${pkgver}/ct_core/build"
cmake -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="/usr" \
..
make
# Clean up some build artificats
sed -i '/WRITE/d' ${srcdir}/${_pkgname}-${pkgver}/ct_core/build/cmake_install.cmake
sed -i '$d' ${srcdir}/${_pkgname}-${pkgver}/ct_core/build/cmake_install.cmake
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}/ct_core/build"
make DESTDIR="${pkgdir}/" install
}
|