blob: 7d6bf5df094595fb32d87e970b3b673fd9c6f74b (
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
|
# Maintainer: drakkan <nicola.murino at gmail dot com>
pkgname=mingw-w64-libnice
pkgver=0.1.22
pkgrel=1
pkgdesc="An implementation of the IETF's draft ICE (for p2p UDP data streams) (mingw-w64)"
arch=(any)
url="https://nice.freedesktop.org"
license=('LGPL')
makedepends=('mingw-w64-meson' 'git' 'mingw-w64-gstreamer')
depends=('mingw-w64-glib2' 'mingw-w64-gnutls')
options=('!strip' '!buildflags' 'staticlibs')
_commit=ae3eb16fd7d1237353bf64e899c612b8a63bca8a # tags/0.1.22^0
source=("git+https://gitlab.freedesktop.org/libnice/libnice.git#commit=$_commit")
sha256sums=('SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "${srcdir}/libnice"
for _arch in $_architectures; do
mkdir -p "build-${_arch}" && pushd build-${_arch}
${_arch}-meson \
-D strip=true \
-D tests=disabled \
-D examples=disabled \
-D gupnp=disabled \
-D gstreamer=enabled \
-D crypto-library=gnutls \
-D introspection=disabled \
-D gtk_doc=disabled
ninja
popd
done
}
package() {
cd "${srcdir}/libnice"
for _arch in ${_architectures}; do
DESTDIR="${pkgdir}" ninja -C "${srcdir}/libnice/build-${_arch}" install
done
}
# vim: ts=2 sw=2 et:
|