summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12c8801b2dc0848c5ec15a9e17ee1fd28a1709fa (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
# Maintainer: Nikolas Koesling <nikolas@koesling.network>

pkgname=shm-format
pkgrel=1
pkgver=2.0.1
pkgdesc="Read values with specified data type from shared memory."
url="https://github.com/SHMModbus/shm_format"
license=('GPL-3.0-only')
arch=('x86_64' 'aarch64')
makedepends=('cmake' 'git' 'cxxopts' 'cxxshm' 'cxxsemaphore' 'nlohmann-json')
depends=('cxxshm' 'cxxsemaphore' 'nlohmann-json')
source=("git+https://github.com/SHMModbus/shm_format.git#tag=v${pkgver}")

sha256sums=('SKIP')

prepare() {
    cd shm_format   
    cmake -DCMAKE_BUILD_TYPE=Release -DCOMPILER_WARNINGS=OFF -DCLANG_FORMAT=OFF -DCLANG_TIDY=OFF -DBUILD_DOC=OFF -DENABLE_TEST=OFF -B build .
}

build() {
    cd shm_format
    cmake --build build
}

package() {
    cd shm_format
    DESTDIR="$pkgdir" cmake --install build
}