blob: 1139f6d0717f430214df58dfea457a31c80bd5aa (
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
|
# Maintainer: Nikolas Koesling <nikolas@koesling.network>
pkgname=modbus-tcp-client-shm
pkgrel=1
pkgver=1.5.2
pkgdesc="modbus tcp client that stores its data (registers) in shared memory"
url="https://github.com/NikolasK-source/modbus_tcp_client_shm"
license=('GPL-3.0-only')
arch=('x86_64' 'aarch64')
makedepends=('cmake' 'git')
source=("git+https://github.com/NikolasK-source/modbus_tcp_client_shm.git#tag=v${pkgver}")
sha256sums=('SKIP')
prepare() {
cd modbus_tcp_client_shm
git submodule init
git submodule update
mkdir -p build
cmake -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=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"
}
|