# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=farstream pkgver=0.2.7 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="bb56af4cbf2cd42f35353f20cf04bc17 farstream-0.2.7.tar.gz" sha256sums="dad0ed43cf94e71df558c23825abe57db59d1ee8d970ffaec5e2dbc2e7acbf7d farstream-0.2.7.tar.gz" sha512sums="98c72eb9045bf7d0ee7d38fc1d7eea0b8ad942fc39843df075bf6f61bc0bed619aafb36ae08d55a6e61265bd47137ec75ffbfc2846c7cbcb4cbef187844426d8 farstream-0.2.7.tar.gz"