blob: 470bb0f5351d6491645a15294362910bf35170e9 (
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
|
# Maintainer: Nikos Toutountzoglou <nikos.toutou@protonmail.com>
pkgname=srt-xtransmit
pkgver=0.1.0
pkgrel=3
pkgdesc="Secure Reliable Transport (SRT) transmission utility used for internal testing and performance evaluation."
url="https://github.com/maxsharabayko/srt-xtransmit"
arch=(x86_64)
license=(MPL2)
depends=(
srt
gcc-libs
openssl
)
makedepends=(
cmake
git
ninja
)
_commit=7e8858d88d5da22fa1a57727ca578a1bec376335 # tags/v0.1.0
source=("git+https://github.com/maxsharabayko/srt-xtransmit#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd srt-xtransmit
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd srt-xtransmit
# Initialize, fetch and checkout submodules
git submodule update --init --recursive
# Checkout srt version (optional)
#cd submodule/srt
#_srtver=x.y.z
#git checkout v$_srtver
}
build() {
local cmake_options=(
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_BUILD_TYPE=None
-DENABLE_TESTING=ON
-DENABLE_APPS=ON
-DENABLE_SHARED=OFF
-DENABLE_ENCRYPTION=ON
-DENABLE_CXX17=ON
)
cmake -S srt-xtransmit -B build -G Ninja "${cmake_options[@]}"
cmake --build build
}
check() {
cd build
./uriparser-test
./utility-test
}
package() {
cd build
install -Dvm755 bin/srt-xtransmit "$pkgdir/usr/bin/srt-xtransmit"
}
|