blob: e537a68e0f3d879dd9cad44e4d67ef7b30c2711a (
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
|
# Maintainer: Jay Schmidek <jschmidek at gmail dot com>
# Maintainer: Paul-Louis Ageneau <paul-louis at ageneau dot org>
pkgname=libdatachannel
pkgver=0.20.1
pkgrel=1
pkgdesc="C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSockets"
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="https://github.com/paullouisageneau/$pkgname"
license=('MPL2')
makedepends=('git' 'cmake')
depends=('glibc' 'gcc-libs' 'openssl' 'libjuice' 'libsrtp')
provides=('libdatachannel.so')
conflicts=()
source=("git+https://github.com/paullouisageneau/$pkgname.git#tag=v$pkgver")
md5sums=('SKIP')
prepare() {
cd $pkgname
git submodule update --init --recursive "$srcdir"/"$pkgname"/deps/{usrsctp,plog}
}
build() {
cd $pkgname
rm -rf build
cmake -B build -Wno-dev \
-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
cmake --build build
}
package() {
cd $pkgname
DESTDIR="$pkgdir/" cmake --install build
}
|