diff options
author | Nicola Murino | 2019-04-27 23:00:46 +0200 |
---|---|---|
committer | Nicola Murino | 2019-04-27 23:00:46 +0200 |
commit | e6e6e350354d814a27aa24968f10f3995a43fb6c (patch) | |
tree | a793c134c240c6596fb5fa7f2915cb1e49a01b0d | |
download | aur-e6e6e350354d814a27aa24968f10f3995a43fb6c.tar.gz |
Initial version
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6fb8a2eade02 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-libnice + pkgdesc = An implementation of the IETF's draft ICE (for p2p UDP data streams) (mingw-w64) + pkgver = 0.1.15 + pkgrel = 1 + url = https://nice.freedesktop.org + arch = any + license = LGPL + makedepends = mingw-w64-meson + makedepends = git + makedepends = mingw-w64-gstreamer + depends = mingw-w64-glib2 + depends = mingw-w64-gnutls + options = !strip + options = !buildflags + options = staticlibs + source = git+https://gitlab.freedesktop.org/libnice/libnice.git#commit=e25c3e5113c7b7002a78bcca2ecf058bbf7de6d4 + sha256sums = SKIP + +pkgname = mingw-w64-libnice + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4c6937783adc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: drakkan <nicola.murino at gmail dot com> +pkgname=mingw-w64-libnice +pkgver=0.1.15 +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=e25c3e5113c7b7002a78bcca2ecf058bbf7de6d4 # tags/0.1.15^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 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: |