blob: b576d6fb3c072593b5be0eba97d86d354bccd4ac (
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
|
# Maintainer: tocic <tocic at protonmail dot ch>
pkgname=snitch
pkgver=1.3.1
pkgrel=1
pkgdesc="Lightweight C++20 testing framework"
arch=("x86_64")
url="https://github.com/snitch-org/snitch"
license=("BSL-1.0")
depends=("gcc-libs")
makedepends=("cmake" "python")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/snitch-org/snitch/archive/v${pkgver}.tar.gz")
b2sums=("f3496264a40728273c18e21c888a80bf04f07f1ce048c61b89ba24c2eccd9879ed30f7a7181a136438eb1b675af71813137e8619c2d8fa60dfe50119d0955475")
build() {
cmake -B "build_shared/" -S "${pkgname}-${pkgver}" \
-D BUILD_SHARED_LIBS:BOOL="ON" \
-D CMAKE_INSTALL_PREFIX:PATH="/usr/" \
-Wno-dev
cmake -B "build_header_only/" -S "${pkgname}-${pkgver}" \
-D SNITCH_HEADER_ONLY:BOOL="ON" \
-D CMAKE_INSTALL_PREFIX:PATH="/usr/" \
-Wno-dev
cmake --build "build_shared/"
cmake --build "build_header_only/"
}
package() {
DESTDIR="${pkgdir}" cmake --install "build_shared/"
DESTDIR="${pkgdir}" cmake --install "build_header_only/"
}
|