blob: 1620ec69098c7a5445e9a1fedaa60db66db8c8bd (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Marc Vidal <mvidaldp@gmail.com>
pkgname=liblsl
pkgver=1.16.2
_pkgver="v${pkgver}"
pkgrel=1
pkgdesc='C++ lsl library for multi-modal time-synched data transmission over the local network (stable release)'
arch=('any')
url='https://github.com/sccn/liblsl/'
license=('MIT')
depends=('gcc-libs')
makedepends=('git' 'cmake' 'patchelf')
provides=("${pkgname}")
conflicts=("${pkgname}-git")
source=("${pkgname}-${pkgver}::git+https://github.com/sccn/liblsl.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_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"
mkdir -p "${pkgdir}/opt/LSL/include/lsl"
mkdir -p "${pkgdir}/opt/LSL/lib"
mkdir -p "${pkgdir}/opt/LSL/share/licenses"
mkdir -p "${pkgdir}/usr/share/LSL/licenses"
ln -rs "${pkgdir}/usr/bin/lslver" -t "${pkgdir}/opt/LSL/bin"
ln -rs "${pkgdir}/usr/include/lsl_c.h" -t "${pkgdir}/opt/LSL/include"
ln -rs "${pkgdir}/usr/include/lsl_cpp.h" -t "${pkgdir}/opt/LSL/include"
ln -rs "${pkgdir}/usr/include/lsl/common.h" -t "${pkgdir}/opt/LSL/include/lsl"
ln -rs "${pkgdir}/usr/include/lsl/inlet.h" -t "${pkgdir}/opt/LSL/include/lsl"
ln -rs "${pkgdir}/usr/include/lsl/outlet.h" -t "${pkgdir}/opt/LSL/include/lsl"
ln -rs "${pkgdir}/usr/include/lsl/resolver.h" -t "${pkgdir}/opt/LSL/include/lsl"
ln -rs "${pkgdir}/usr/include/lsl/streaminfo.h" -t "${pkgdir}/opt/LSL/include/lsl"
ln -rs "${pkgdir}/usr/include/lsl/types.h" -t "${pkgdir}/opt/LSL/include/lsl"
ln -rs "${pkgdir}/usr/include/lsl/xml.h" -t "${pkgdir}/opt/LSL/include/lsl"
ln -rsT "${pkgdir}/usr/lib/${pkgname}.so.${pkgver}" "${pkgdir}/opt/LSL/lib/${pkgname}.so.${pkgver}"
ln -rsT "${pkgdir}/opt/LSL/lib/${pkgname}.so.${pkgver}" "${pkgdir}/opt/LSL/lib/${pkgname}.so"
install -Dm644 "${pkgdir}/usr/lib/cmake/LSL/LSLCMake.cmake" -t "${pkgdir}/opt/LSL/share"
install -Dm644 "${pkgdir}/usr/lib/cmake/LSL/LSLConfig.cmake" -t "${pkgdir}/opt/LSL/share"
install -Dm644 "${pkgdir}/usr/lib/cmake/LSL/LSLConfigVersion.cmake" -t "${pkgdir}/opt/LSL/share"
install -Dm644 "${pkgdir}/usr/lib/cmake/LSL/LSLTargets-none.cmake" -t "${pkgdir}/opt/LSL/share"
install -Dm644 "${pkgdir}/usr/lib/cmake/LSL/LSLTargets.cmake" -t "${pkgdir}/opt/LSL/share"
install -Dm644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/opt/LSL/share/licenses"
install -Dm644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/LSL/licenses"
}
|