# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=farstream pkgver=0.2.4 pkgrel=0 pkgdesc="Libraries for videoconferencing" url="http://www.freedesktop.org/wiki/Software/Farstream" arch="all" license="LGPLv2+" depends="" depends_dev="libnice-dev gstreamer1-dev gst-plugins-base1-dev" makedepends="$depends_dev gobject-introspection-dev py-gobject-dev python-dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://freedesktop.org/software/farstream/releases/farstream/farstream-$pkgver.tar.gz" _builddir="$srcdir"/farstream-$pkgver prepare() { local i cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-python \ --disable-static \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la \ "$pkgdir"/usr/lib/*/*.la \ "$pkgdir"/usr/lib/python*/site-packages/farstream.la } py() { pkgdesc="Python binding for farstream" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } md5sums="edcc75cbf7c811cfe3de9b00b9808682 farstream-0.2.4.tar.gz" sha256sums="120d5b5cd79fcbe19d9e046526fc4bc059e0a3733b3de2d7e5299dc5a3a7bb30 farstream-0.2.4.tar.gz" sha512sums="f0327392cf644bf08fac81b3408d98eff8ba96742b88d1bd3006416d6fb1fc7c44a0dcc3e6e6ccc64be27633c67069a1219d6dc07815b80edf34515119cda089 farstream-0.2.4.tar.gz"