summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4937a139e686a77678cda2cf209e676b80a4f78a (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: Marc Vidal <mvidaldp@gmail.com>

pkgname=labrecorder
pkgver=1.14.2
_pkgver=v1.14.2
pkgrel=2
pkgdesc='Default LSL (LabStreamingLayer) recording program (stable release). It allows to record all streams on the lab network (or a subset) into a single file, with time synchronization between streams.'
arch=('any')
url='https://github.com/sccn/liblsl/'
license=('MIT')
depends=('liblsl')
makedepends=('boost' 'cmake' 'qt5-base')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("${pkgname}-${pkgver}::git+https://github.com/labstreaminglayer/App-LabRecorder.git#tag=${_pkgver}")
md5sums=('SKIP')

build() {
    cmake \
        -B "${pkgname}-${pkgver}/build" \
        -S "${pkgname}-${pkgver}" \
        -DCMAKE_BUILD_TYPE:STRING='None' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -DLSL_DIR:STRING='/opt/LSL' \
        -DLSL_UNIXFOLDERS:BOOL='ON' \
        -Wno-dev
    make -C "${pkgname}-${pkgver}/build" all
}

package() {
    make -C "${pkgname}-${pkgver}/build" DESTDIR="${pkgdir}" install

    mkdir -p "${pkgdir}/opt/LSL/bin"

    ln -rs "${pkgdir}/usr/bin/LabRecorder" -t "${pkgdir}/opt/LSL/bin"
    ln -rs "${pkgdir}/usr/bin/LabRecorder.cfg" -t "${pkgdir}/opt/LSL/bin"
    ln -rs "${pkgdir}/usr/bin/LabRecorderCLI" -t "${pkgdir}/opt/LSL/bin"

    install -Dm644 "${pkgdir}/usr/bin/LICENSE" -t "${pkgdir}/opt/LSL/bin"
}