jobextra/libdatachannel/PKGBUILD
joborun linux f74586570e move libdatachannel libjuice from jobcomm and upg
upg librewolf md4c pacman-contrib cmonad python-pytest wayland-protocols
2024-01-31 01:29:27 +02:00

58 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libdatachannel
pkgver=0.20.1
pkgrel=01
pkgdesc="C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSockets"
url="https://github.com/paullouisageneau/$pkgname"
makedepends=('git' 'cmake')
depends=('openssl' 'libjuice' 'libsrtp')
provides=("$pkgname")
conflicts=("$pkgname")
source=("git+https://github.com/paullouisageneau/$pkgname.git#tag=v$pkgver")
prepare() {
cd $pkgname
git submodule update --init --recursive "$srcdir"/"$pkgname"/deps/{usrsctp,plog}
}
build() {
cd $pkgname
rm -rf build
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_GNUTLS=0 \
-DUSE_NICE=0 \
-DUSE_SYSTEM_JUICE=1 \
-DUSE_SYSTEM_SRTP=1 \
-DNO_TESTS=1 \
-DNO_EXAMPLES=1 \
-Wno-dev
cd build
make
}
package() {
cd $pkgname
cd build
make DESTDIR="$pkgdir/" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MPL2')
sha256sums=(SKIP)
## 316a3311f1a6db56b9a25680b63ae5d842ba8d1e07836e2381ce711ad5e7fec4 libdatachannel-0.20.1-01-x86_64.pkg.tar.lz