archrelease: copy trunk to extra-x86_64
[arch-packages.git] / srt / trunk / PKGBUILD
blob3c08437523e92b539e8b7faf2f4adf590302b72b
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 _commit=0bc3b03202b3159fc9b085b3ae6d66ec071c25d6  # tags/v1.5.1
13 source=("git+https://github.com/Haivision/srt#commit=$_commit")
14 b2sums=('SKIP')
16 pkgver() {
17   cd srt
18   git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
21 prepare() {
22   cd srt
25 build() {
26   cmake -S srt -B build -G Ninja \
27     -DCMAKE_INSTALL_PREFIX=/usr \
28     -DCMAKE_BUILD_TYPE=None \
29     -DENABLE_STATIC=ON \
30     -DENABLE_TESTING=ON
31   cmake --build build
34 check() {
35   cd build
36   ./uriparser-test
37   ./utility-test
40 package() {
41   DESTDIR="$pkgdir" cmake --install build
44 # vim:set sw=2 sts=-1 et: