summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f987d650fce6205fbb0adfa4a95a4493cefdf774 (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
# Maintainer: Johannes Wienke <languitar@semipol.de>

pkgname='rsb-spread-cpp-stable-git'
pkgver=0.16.1.e933fbb
pkgrel=1
pkgdesc='Robotics Service Bus C++ spread transport'
arch=('i686' 'x86_64')
url='https://projects.cor-lab.org/projects/rsb'
license=('LGPL3')
depends=('rsc-stable-git' 'boost' 'protobuf' 'spread-daemon' 'rsb-cpp-stable-git')
makedepends=('git' 'cmake')
checkdepends=('python2')
source=("rsb-spread-cpp::git+https://code.cor-lab.org/git/rsb.git.spread-cpp#branch=0.16")
md5sums=('SKIP')
conflicts=('rsb-spread-cpp')
provides=('rsb-spread-cpp')

pkgver() {
    cd "${srcdir}/rsb-spread-cpp"
    printf "%s" "$(git describe --long | sed 's/release-//;s/\([^-]*-\)g/\1/;s/-/./g')"
}

check() {
    cd "${srcdir}/rsb-spread-cpp/build"
    make test
}

build() {
    cd "${srcdir}/rsb-spread-cpp"
    rm -rf build
    mkdir -p build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
    make
}

package() {
    cd "${srcdir}/rsb-spread-cpp/build"
    make DESTDIR="${pkgdir}/" install
}