PKGBUILDs/extra/libnice/PKGBUILD
2017-01-21 21:22:48 +00:00

44 lines
1 KiB
Bash

# $Id$
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: William Díaz <wdiaz@archlinux.us>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure with --enable-compile-warnings=yes
pkgname=libnice
pkgver=0.1.13+156+g1778f79
pkgrel=1
pkgdesc="An implementation of the IETF's draft ICE (for p2p UDP data streams)"
arch=('i686' 'x86_64')
url="https://nice.freedesktop.org"
license=('LGPL')
depends=('glib2')
makedepends=('gstreamer' 'gtk-doc' 'git')
optdepends=('gstreamer')
_commit=1778f790087ab7663975ea466527c252eaccc5e3 # master
source=("git+https://anongit.freedesktop.org/git/libnice/libnice#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./configure --prefix=/usr --disable-static --with-gstreamer-0.10=no --enable-gtk-doc --enable-compile-warnings=yes
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}