blob: 6d7cae9aab5512fc4825617df804b5f1e7149335 (
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
|
# Maintainer: Nikolas Koesling <nikolas@koesling.network>
pkgname=modbus-tcp-client-shm
pkgrel=1
pkgver=1.6.3
pkgdesc="modbus tcp client that stores its data (registers) in shared memory"
url="https://github.com/SHMModbus/modbus_tcp_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_tcp_client_shm.git#tag=v${pkgver}")
sha256sums=('SKIP')
prepare() {
cd modbus_tcp_client_shm
git submodule init
git submodule update
cmake -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_FORMAT=OFF -DCLANG_TIDY=OFF -B build .
}
build() {
cd modbus_tcp_client_shm
cmake --build build
}
package() {
cd modbus_tcp_client_shm
install -Dm755 build/modbus-tcp-client-shm "${pkgdir}/usr/bin/modbus-tcp-client-shm"
}
|