-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The warning "Package contains reference to $srcdir" is expected. See snitch-org/snitch#62.
- Loading branch information
0 parents
commit 83afe06
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pkgbase = snitch | ||
pkgdesc = Lightweight C++20 testing framework | ||
pkgver = 1.0.0 | ||
pkgrel = 1 | ||
url = https://github.com/cschreib/snitch | ||
arch = x86_64 | ||
license = Boost | ||
makedepends = cmake | ||
makedepends = python | ||
depends = gcc-libs | ||
source = snitch-1.0.0.tar.gz::https://github.com/cschreib/snitch/archive/v1.0.0.tar.gz | ||
b2sums = 388dc536c87ed664c885b69290bc5e3d1cb18df2f9fccc8d7ea973f41cfd362d2a6a66685a907f67a5f7a039e50158e008d6bda0383894efe6eaa5a45a645aed | ||
|
||
pkgname = snitch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
!/**/ | ||
|
||
!/.gitignore | ||
!/.SRCINFO | ||
!/PKGBUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Maintainer: tocic <tocic at protonmail dot ch> | ||
|
||
pkgname=snitch | ||
pkgver=1.0.0 | ||
pkgrel=1 | ||
pkgdesc="Lightweight C++20 testing framework" | ||
arch=("x86_64") | ||
url="https://github.com/cschreib/snitch" | ||
license=("Boost") | ||
depends=("gcc-libs") | ||
makedepends=("cmake" "python") | ||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cschreib/snitch/archive/v${pkgver}.tar.gz") | ||
b2sums=("388dc536c87ed664c885b69290bc5e3d1cb18df2f9fccc8d7ea973f41cfd362d2a6a66685a907f67a5f7a039e50158e008d6bda0383894efe6eaa5a45a645aed") | ||
|
||
build() { | ||
cmake -B "build/" -S "${pkgname}-${pkgver}" \ | ||
-D BUILD_SHARED_LIBS:BOOL="ON" \ | ||
-D CMAKE_INSTALL_PREFIX:PATH="/usr/" \ | ||
-Wno-dev | ||
|
||
cmake --build "build/" | ||
} | ||
|
||
package() { | ||
DESTDIR="${pkgdir}" cmake --install "build/" | ||
} |