# vim: set syn=sh et ai sw=2 st=2 ts=2 tw=0:
#Packager: JRD <jrd@enialis.net>

pkgname=libnice
pkgver=0.1.2
pkgrel=1rl
source=(http://nice.freedesktop.org/releases/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://nice.freedesktop.org/wiki/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (The GLib ICE implementation)"
"Libnice is an implementation of the IETF's draft Interactice"
"Connectivity Establishment standard (ICE). It provides GLib-based"
"library, libnice and GStreamer elements."
"ICE is useful for applications that want to establish peer-to-peer UDP"
"data streams. It automates the process of traversing NATs and provides"
"security against some attacks."
"Existing standards that use ICE include Session Initiation Protocol"
"(SIP) and XMPP Jingle."
)


build() {
  cd $startdir/src/$pkgname-$pkgver || return 1
  ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux --enable-static=no --enable-gtk-doc-html=no || return 1
  sed -i 's:\tdocs.*::; s:\ttests.*::;' Makefile
  make -j $numjobs || return 1
  make install DESTDIR=$startdir/pkg || return 1
}