updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mythplugins-0.24-fixes-svn-mythmusic / PKGBUILD
bloba61c6d44ec22cb3afa5d264db74c3968472c3a67
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-mythmusic
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-mythmusic \
47               --enable-libvisual \
48               --enable-fftw \
49               --enable-sdl \
50                --python=python2
51   qmake mythplugins.pro
52   make
55 package_mythplugins-0.24-fixes-svn-mythmusic() {
56   pkgdesc="Music playing plugin for MythTV"
57   depends=("mythtv-0.24-fixes-svn" 'cdparanoia' 'flac' 'libcdaudio' 'libvisual'
58            'libvorbis' 'sdl' 'taglib')
59   conflicts=('mythplugins-mythmusic')
60   provides=('mythplugins-mythmusic')
62   cd "$srcdir/$_svnmod-build/mythmusic"
63   make INSTALL_ROOT="$pkgdir" install