summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76d6f488601e2a94d91145c85aa58446dfa76a27 (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-rbd
pkgver=3.0.2
pkgrel=1
pkgdesc="The Control Toolbox - Rigid Body Dynamics 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-optcon)
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_rbd/build"
    cd "${srcdir}/${_pkgname}-${pkgver}/ct_rbd/build"
    cmake -DCMAKE_BUILD_TYPE="Release" \
          -DCMAKE_INSTALL_PREFIX="/usr" \
          ..
    make

    # Clean up some build artificats
    sed -i '/WRITE/d' ${srcdir}/${_pkgname}-${pkgver}/ct_rbd/build/cmake_install.cmake
    sed -i '$d' ${srcdir}/${_pkgname}-${pkgver}/ct_rbd/build/cmake_install.cmake

}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}/ct_rbd/build"
    make DESTDIR="${pkgdir}/" install
}