# Contributor: azleifel <azleifel at googlemail.com>
pkgname=gstreamer0.10-rtsp
_source_pkgname=gst-rtsp
pkgver=0.10.7
pkgrel=2
pkgdesc="An RTSP server based on GStreamer with Python and Vala bindings"
arch=('i686' 'x86_64')
url="http://people.freedesktop.org/~wtay/"
license=('GPL')
depends=('gstreamer0.10-base')
makedepends=('pkg-config' 'gstreamer0.10-python' 'vala')
optdepends=('gstreamer0.10-python: To utilise the Python bindings'
'vala: To utilise the Vala bindings')
options=(!libtool)
source=(http://people.freedesktop.org/~wtay/${_source_pkgname}-${pkgver}.tar.bz2)
md5sums=('3c2e0bf09bb66e302b6c64cb9e8f1eb6')
build() {
cd ${srcdir}/${_source_pkgname}-${pkgver}
#
# BUILD
#
for i in docgen.py h2def.py mergedefs.py mkskel.py scmexpr.py; do
sed -i -e 's/env python/env python2/' bindings/python/codegen/$i
done
PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-valgrind --disable-debug --enable-introspection=no
make
make DESTDIR=${pkgdir} install
# Install documents
install -D -m644 NEWS ${pkgdir}/usr/share/doc/${pkgname}/NEWS
install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}/README
cp -rpf docs/* ${pkgdir}/usr/share/doc/${pkgname}
}