1 # Maintainer: kevku <kevku@msn.com>
2 # Contributor:Xiang Yixiang <lovelinux229-at-gmail-dot-com>
3 pkgname=gst-plugins-sopcast-git
6 pkgdesc="A sopcast plugin for gstreamer"
8 url="http://cgit.freedesktop.org/~jinghua/gst-plugins-sopcast/"
10 if [[ "$CARCH" == 'i686' ]]; then
11 depends=('gstreamer0.10' 'gstreamer0.10-base-plugins' 'sopcast')
13 depends=('gstreamer0.10' 'gstreamer0.10-base-plugins' 'bin32-sopcast')
15 makedepends=('git' 'intltool')
16 provides=('gst-plugins-sopcast')
18 _gitroot="git://anongit.freedesktop.org/~jinghua/gst-plugins-sopcast.git"
19 _gitname="gst-plugins-sopcast"
27 msg "Connecting to GIT server..."
28 if [[ -d $_gitname ]]; then
29 (cd $_gitname && git pull origin)
31 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf $_gitname-build
37 cp -r $_gitname $_gitname-build
40 ./autogen.sh --prefix=/usr
44 cd $srcdir/$_gitname-build
45 make DESTDIR=$pkgdir install