summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c39f84a39c6576b6af1c9da7737c713bc72d096 (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=shared-mem-random
pkgrel=2
pkgver=1.4.0
pkgdesc="write random values to a shared memory"
url="https://github.com/SHMModbus/shared_mem_random"
license=('MIT')
arch=('x86_64' 'aarch64')
makedepends=('cmake' 'git' 'cxxopts' 'cxxitimer' 'cxxshm' 'cxxsemaphore')
depends=('cxxitimer' 'cxxshm' 'cxxsemaphore')
source=("git+https://github.com/SHMModbus/shared_mem_random.git#tag=v${pkgver}")

sha256sums=('SKIP')

prepare() {
    cd shared_mem_random
    git submodule init
    git submodule update
    mkdir -p build
    cmake -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -B build .
}

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

package() {
    cd shared_mem_random
    install -Dm755 build/shared-mem-random "${pkgdir}/usr/bin/shared-mem-random"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}