blob: 7a6adf155cb19752251118f83ea0c16a9f5e4a36 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Maintainer: envolution
# Contributor: Carl Smedstad <carsme@archlinux.org>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=mvfst-git
_pkgname=mvfst
pkgver=2025.06.02.00+r8625+g1c496afd2
pkgrel=1
pkgdesc="An implementation of the QUIC transport protocol"
arch=(x86_64)
url="https://github.com/facebook/mvfst"
license=(MIT)
depends=(
double-conversion
fizz
fmt
folly
gcc-libs
gflags
glibc
google-glog
gtest
libsodium
openssl
)
makedepends=(
boost
cmake
)
checkdepends=(expat)
conflicts=(mvfst)
provides=(
"mvfst=${pkgver%%+*}"
libmvfst_async_udp_socket.so
libmvfst_batch_writer.so
libmvfst_buf_accessor.so
libmvfst_bufutil.so
libmvfst_cc_algo.so
libmvfst_client.so
libmvfst_codec.so
libmvfst_codec_decode.so
libmvfst_codec_packet_number_cipher.so
libmvfst_codec_pktbuilder.so
libmvfst_codec_pktrebuilder.so
libmvfst_codec_types.so
libmvfst_constants.so
libmvfst_dsr_frontend.so
libmvfst_dsr_types.so
libmvfst_events.so
libmvfst_exception.so
libmvfst_fizz_client.so
libmvfst_fizz_handshake.so
libmvfst_flowcontrol.so
libmvfst_handshake.so
libmvfst_happyeyeballs.so
libmvfst_looper.so
libmvfst_loss.so
libmvfst_observer.so
libmvfst_qlogger.so
libmvfst_server.so
libmvfst_server_async_tran.so
libmvfst_server_state.so
libmvfst_state_ack_handler.so
libmvfst_state_datagram_handler.so
libmvfst_state_functions.so
libmvfst_state_machine.so
libmvfst_state_pacing_functions.so
libmvfst_state_simple_frame_functions.so
libmvfst_state_stream.so
libmvfst_state_stream_functions.so
libmvfst_transport.so
libmvfst_transport_knobs.so
libmvfst_transport_settings_functions.so
)
source=(git+https://github.com/facebook/mvfst.git)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
_version=$(git describe --tags --abbrev=0 | tr - .)
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "${_version#'v'}+r${_commits}+g${_short_commit_hash}"
}
prepare() {
cd $_pkgname
# Use system CMake config instead of bundled module
sed -i 's/find_package(Glog REQUIRED)/find_package(Glog CONFIG REQUIRED)/' \
CMakeLists.txt
sed -i '/#include <cstdio>/a #include <cstdlib>' quic/common/third-party/optional.h
}
build() {
cd $_pkgname
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev \
-DBUILD_TESTS=ON \
-DBUILD_SHARED_LIBS=ON \
-DPACKAGE_VERSION="${pkgver%%+*}"
cmake --build build
}
package() {
cd $_pkgname
DESTDIR="$pkgdir" cmake --install build
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE || true
}
# vim:set ts=2 sw=2 et:
|