updated on Wed Jan 25 12:16:47 UTC 2012
[aur-mirror.git] / gst-plugins-sopcast-git / PKGBUILD
blobd6017f9b5a797d0aa989e7a9956398971d131335
1 # Maintainer: kevku <kevku@msn.com>
2 # Contributor:Xiang Yixiang <lovelinux229-at-gmail-dot-com>
3 pkgname=gst-plugins-sopcast-git
4 pkgver=20110226
5 pkgrel=1
6 pkgdesc="A sopcast plugin for gstreamer"
7 arch=("i686" "x86_64")
8 url="http://cgit.freedesktop.org/~jinghua/gst-plugins-sopcast/"
9 license=('GPL')
10 if [[ "$CARCH" == 'i686' ]]; then
11 depends=('gstreamer0.10' 'gstreamer0.10-base-plugins' 'sopcast')
12 else
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"
21 source=()
22 md5sums=()
24 build() {
25   cd $srcdir
27   msg "Connecting to GIT server..."
28   if [[ -d $_gitname ]]; then
29     (cd $_gitname && git pull origin)
30   else
31     git clone $_gitroot $_gitname
32   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf $_gitname-build
37   cp -r $_gitname $_gitname-build
38   cd $_gitname-build
40   ./autogen.sh --prefix=/usr
41   make 
43 package(){
44   cd $srcdir/$_gitname-build
45   make DESTDIR=$pkgdir install