blob: bd527eff50206094651aa8ab7b343f9040abb050 (
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-models
pkgver=3.0.2
pkgrel=1
pkgdesc="The Control Toolbox - Models Components"
arch=('i686' 'x86_64')
url="https://github.com/ethz-adrl/control-toolbox"
license=('BSD-2-Clause')
makedepends=(cmake)
depends=(control-toolbox-core control-toolbox-rbd)
optdepends=()
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_models/build"
cd "${srcdir}/${_pkgname}-${pkgver}/ct_models/build"
cmake -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="/usr" \
..
make
# Clean up some build artificats
sed -i '/WRITE/d' ${srcdir}/${_pkgname}-${pkgver}/ct_models/build/cmake_install.cmake
sed -i '$d' ${srcdir}/${_pkgname}-${pkgver}/ct_models/build/cmake_install.cmake
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}/ct_models/build"
make DESTDIR="${pkgdir}/" install
}
|