102.11.0-1
[arch-packages.git] / srt / repos / extra-x86_64 / PKGBUILD
blob9812d1288ca696126ba7109d5f6ebd7e17cb76fc
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=srt
4 pkgver=1.5.1
5 pkgrel=3
6 pkgdesc="Secure Reliable Transport library"
7 url="https://www.srtalliance.org/"
8 arch=(x86_64)
9 license=(MPL2)
10 depends=(openssl)
11 makedepends=(git cmake ninja)
12 options=(debug)
13 _commit=0bc3b03202b3159fc9b085b3ae6d66ec071c25d6  # tags/v1.5.1
14 source=("git+https://github.com/Haivision/srt#commit=$_commit")
15 b2sums=('SKIP')
17 pkgver() {
18   cd srt
19   git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
22 prepare() {
23   cd srt
26 build() {
27   cmake -S srt -B build -G Ninja \
28     -DCMAKE_INSTALL_PREFIX=/usr \
29     -DCMAKE_BUILD_TYPE=None \
30     -DENABLE_STATIC=ON \
31     -DENABLE_TESTING=ON
32   cmake --build build
35 check() {
36   cd build
37   ./uriparser-test
38   ./utility-test
41 package() {
42   DESTDIR="$pkgdir" cmake --install build
45 # vim:set sw=2 sts=-1 et: