updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mythplugins-0.24-fixes-svn-mythvideo / PKGBUILD
blob1f0ea936403b1e9e31281e9812abe08e0a2fe58a
1 # Maintainer: Jannik Sost <jannik.sost at gmail.com>
2 # Contributor: Jonathan Conder <jonno.conder@gmail.com>
3 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
5 pkgbase=mythplugins-0.24-fixes-svn
6 pkgname=mythplugins-0.24-fixes-svn-mythvideo
7 pkgver=27371
8 pkgrel=2
9 arch=('i686' 'x86_64')
10 url="http://www.mythtv.org"
11 license=('GPL')
12 makedepends=("mythtv-0.24-fixes-svn" 'cdrkit' 'dvdauthor' 'dvd+rw-tools' 'ffmpeg'
13              'python-imaging' 'libexif' 'perl-date-manip' 'zlib' 'cdparanoia'
14              'flac' 'libcdaudio' 'libvisual' 'libvorbis' 'sdl' 'taglib'
15              'python2-oauth' 'python-pycurl' 'mplayer' 'perl-date-manip'
16              'perl-libwww' 'perl-soap-lite' 'perl-xml-sax' 'perl-xml-simple'
17              'perl-xml-xpath' 'perl-image-size' 'perl-datetime-format-iso8601' 
18              'subversion')
19 options=('force')
20 source=('mtd.rc')
21 md5sums=('476c12ba074794ad7f4ae092bdf949d6')
23 _svntrunk="http://code.mythtv.org/svn/branches/release-0-24-fixes/mythplugins"                                                                                                                        
24 _svnmod=mythplugins
26 build() {
27   cd "$srcdir"                                                                                                                          
28                                                                                                                                         
29   if [ -d $_svnmod/.svn ]; then                                                                                                         
30     (cd $_svnmod && svn up -r $pkgver)                                                                                                  
31   else                                                                                                                                  
32     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod                                                                               
33   fi                                                                                                                                    
34                                                                                                                                         
35   msg "SVN checkout done or server timeout"                                                                                             
36   msg "Starting make..."                                                                                                                
37                                                                                                                                         
38   rm -rf "$srcdir/$_svnmod-build"                                                                                                       
39   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"                                                                                     
40   cd "$srcdir/$_svnmod-build"
42   find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
44   ./configure --prefix=/usr \
45               --disable-all \
46               --enable-mythvideo \
47                --python=python2
48   qmake mythplugins.pro
49   make
53 package_mythplugins-0.24-fixes-svn-mythvideo() {
54   pkgdesc="Video playback and browsing plugin for MythTV"
55   depends=("mythtv-0.24-fixes-svn" 'mplayer')
56   conflicts=('mythplugins-mythvideo')
57   provides=('mythplugins-mythvideo')
59   cd "$srcdir/$_svnmod-build/mythvideo"
60   make INSTALL_ROOT="$pkgdir" install
62   install -D -m755 "$srcdir/mtd.rc" "$pkgdir/etc/rc.d/mtd"