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

pkgname=cxxsemaphore
pkgrel=1
pkgver=2.0.2
pkgdesc="A C++ library to handle POSIX named semaphores "
url="https://github.com/NikolasK-source/cxxsemaphore"
license=('MIT')
arch=('x86_64' 'aarch64')
makedepends=('cmake')
source=("git+https://github.com/NikolasK-source/cxxsemaphore.git#tag=v${pkgver}")

sha256sums=('SKIP')

prepare() {
    cd cxxsemaphore
    mkdir -p build
    cmake -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF -DBUILD_DOC=OFF -B build .
}

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

package() {
    cd cxxsemaphore
    cmake --install build --config Release --prefix "${pkgdir}/usr"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}