blob: a28381c6f8f4eadda3fd343fb1af1392e41465b6 (
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
37
38
39
|
# Maintainer: László Várady <laszlo.varady93@gmail.com>
# Contributor: Aleksandar Trifunović <akstrfn at gmail dot com>
pkgname=fizz
pkgver=2021.04.26.00
pkgrel=1
pkgdesc="C++14 implementation of the TLS-1.3 standard"
arch=('x86_64')
url="https://github.com/facebookincubator/fizz"
license=('BSD')
depends=('boost' 'boost-libs' 'google-glog' 'folly' 'libevent' 'openssl' 'libsodium' 'fmt' 'double-conversion')
makedepends=('cmake' 'gtest' 'gmock')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('e348614ad79ea4fa3f171587adfbbbf78773b20854fd19f07c599ff1e98b2670')
build() {
cd "$pkgname-$pkgver/$pkgname"
cmake -S . -B build \
-DCMAKE_C_FLAGS:string="${CFLAGS}" \
-DCMAKE_CXX_FLAGS:string="${CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS:string="${LDFLAGS}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=ON \
-DBUILD_EXAMPLES=OFF
cmake --build build
}
check() {
cd "$pkgname-$pkgver/$pkgname"
cmake --build build --target test
}
package() {
cd "$pkgname-$pkgver"
cmake --build $pkgname/build --target install -- DESTDIR="$pkgdir/"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|