blob: cbb6b169d5c4e45f219ad3598103e5a180febac8 (
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
|
# Maintainer: Nikolas Koesling <nikolas@koesling.network>
pkgname=modbus-rtu-client-shm
pkgrel=3
pkgver=0.4.1
pkgdesc="modbus rtu client that stores its data (registers) in shared memory"
url="https://github.com/SHMModbus/modbus_rtu_client_shm"
license=('GPL-3.0-only')
arch=('x86_64' 'aarch64')
makedepends=('cmake' 'git' 'cxxopts' 'cxxshm' 'cxxsemaphore' 'libmodbus')
depends=('cxxshm' 'cxxsemaphore' 'libmodbus')
source=("git+https://github.com/SHMModbus/modbus_rtu_client_shm.git#tag=v${pkgver}")
sha256sums=('SKIP')
prepare() {
cd modbus_rtu_client_shm
git submodule init
git submodule update
mkdir -p build
cmake -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF -B build .
}
build() {
cd modbus_rtu_client_shm
cmake --build build
}
package() {
cd modbus_rtu_client_shm
install -Dm755 build/modbus-rtu-client-shm "${pkgdir}/usr/bin/modbus-rtu-client-shm"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|