blob: 65cfa2ad8d0963f363d62deb45a186f79b9b8f01 (
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
33
34
35
36
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=cs-crypto-git
pkgver=1.0.2.r0.g01eefa3
pkgrel=1
pkgdesc='C++ interface for calling existing cryptography libraries (git version)'
arch=('x86_64')
url='https://www.copperspice.com/'
license=('BSD-2-Clause')
makedepends=('git' 'cmake' 'catch2-v2')
provides=('cs-crypto')
conflicts=('cs-crypto')
source=('git+https://github.com/copperspice/cs_crypto.git')
sha256sums=('SKIP')
pkgver() {
git -C cs_crypto describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^crypto\.//;s/^v//'
}
build() {
cmake -B build -S cs_crypto \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DBUILD_TESTS:BOOL='ON' \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -D -m644 cs_crypto/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|