blob: ab99391612fc63b85a8e7614771a2d753f88474d (
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=cxxitimer
pkgrel=1
pkgver=2.0.2
pkgdesc="A C++ Library to handle linux interval timer"
url="https://github.com/NikolasK-source/cxxitimer"
license=('MIT')
arch=('x86_64' 'aarch64')
makedepends=('cmake')
source=("git+https://github.com/NikolasK-source/cxxitimer.git#tag=v${pkgver}")
sha256sums=('SKIP')
prepare() {
cd cxxitimer
mkdir -p build
cmake -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF -DBUILD_DOC=OFF -B build .
}
build() {
cd cxxitimer
cmake --build build
}
package() {
cd cxxitimer
cmake --install build --config Release --prefix "${pkgdir}/usr"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|