Skip to content

Commit

Permalink
Add build files
Browse files Browse the repository at this point in the history
The warning "Package contains reference to $srcdir" is expected.
See snitch-org/snitch#62.
  • Loading branch information
tocic committed Feb 4, 2023
0 parents commit 83afe06
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .SRCINFO
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
!/**/

!/.gitignore
!/.SRCINFO
!/PKGBUILD
26 changes: 26 additions & 0 deletions PKGBUILD
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/"
}

0 comments on commit 83afe06

Please sign in to comment.