summaryrefslogtreecommitdiff
path: root/community/libnice/APKBUILD
blob: 9d82c1cf8cd1ad401ef7e17f6e36ec4adcd24f98 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnice
pkgver=0.1.21
pkgrel=0
pkgdesc="GLib ICE implementation"
options="!check" # Testsuite fails
url="https://libnice.freedesktop.org/"
arch="all"
license="LGPL-2.1-or-later AND MPL-1.1"
makedepends="
	glib-dev
	gnutls-dev
	gstreamer-dev
	gobject-introspection-dev
	meson"
subpackages="
	$pkgname-dbg
	$pkgname-dev
	$pkgname-gstreamer:_gst"
source="https://nice.freedesktop.org/releases/libnice-$pkgver.tar.gz
	libnice-meson-0.58.patch "

build() {
	abuild-meson \
		-Db_lto=true \
		-Dgtk_doc=disabled \
		-Dtests=disabled \
		-Dexamples=disabled \
		-Dintrospection=enabled \
		-Dcrypto-library=gnutls \
		-Dgstreamer=enabled \
		-Dgupnp=disabled builddir
	meson compile ${JOBS:+-j ${JOBS}} -C builddir
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C builddir
}

_gst() {
	pkgdesc="Gstreamer 1.0 plugin for libnice"
	amove usr/lib/gstreamer-*
}

sha512sums="
acbd1e0e8aacb0a65cad5b70b470a74a7c4a4f1306bc4e17cd4fd899f2fae2bb538bd099e6c0f9cba6bb9a38e95bc14087aa4f77f6aa5b70d6398179783c6e26  libnice-0.1.21.tar.gz
c59962a20d554da909a993f5d83d8d96da927d0ac94cfef2f699468326509f5715e8f7054badd25d07819b733dcea13c308b72aff170c013f7004dadba960dd7  libnice-meson-0.58.patch
"