summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.25/mythplugins/PKGBUILD
blob: bd4a40cca7f8ca75ef5b439e21b04068d9c95f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# $Id: PKGBUILD 91281 2010-09-26 06:04:21Z remy $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgbase=mythplugins
pkgname=('mytharchive'
         'mythbrowser'
         'mythgallery'
         'mythgame'
         'mythmusic'
         'mythnetvision'
         'mythnews'
         'mythweather'
         'mythzoneminder')
pkgver=0.25
pkgrel=6

arch=('i686' 'x86_64')
url="http://www.mythtv.org"
license=('GPL')
conflicts=('mythmovies')
makedepends=("mythtv>=${pkgver}" 'mplayer' 'fftw2' 'dvdauthor' 'libexif'
             'python-imaging' 'libcdaudio' 'taglib' 'perl-xml-simple' 'dcraw'
             'libvisual' 'perl-xml-xpath' 'perl-image-size' 'perl-json'
             'perl-class-inspector' 'perl-datetime-format-iso8601'
             'flac' 'libvorbis' 'python2' 'python-pycurl' 'python-oauth'
             'libcdio' 'fftw')

source=(mythburn.py.patch)


#_gitroot="https://github.com/MythTV/mythtv.git"
#_gitname="mythplugins"

build() {

 if [ -e ${srcdir}/mythplugins ]
    then
        rm -rf ${srcdir}/mythplugins
    fi

    cd ${startdir}
    msg "copy in myth plugins src"
    cp -rp ../git_src/mythtv/mythplugins $srcdir
    cd ${srcdir}/${pkgbase}



  msg "The local files are updated."
  #find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
  cd ${srcdir}/${pkgbase}
  ./configure --prefix=/usr \
              --enable-all

  qmake mythplugins.pro || return 1
  make || return 1
}

package_mytharchive() {
  pkgdesc="MythTV plugin that lets you create DVDs from or archive your recorded shows"
  depends=("mythtv>=${pkgver}" 'libxmu' 'pil' 'dvdauthor' 'm2vrequantiser')
#  replaces=('mytharchive')
  cd "${srcdir}/${_gitname}/${pkgbase}/mytharchive"

#  patch mythburn/scripts/mythburn.py < $srcdir/mythburn.py.patch || return 1
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythbrowser() {
  pkgdesc="Mini web browser for MythTV"
  depends=("mythtv>=${pkgver}")
#  replaces=('mythbrowser')
  cd "${srcdir}/${_gitname}/${pkgbase}/mythbrowser"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythgallery() {
  pkgdesc="Image gallery plugin for MythTV"
  depends=("mythtv>=${pkgver}" 'libexif')
#  replaces=('mythgallery')
  cd "${srcdir}/${_gitname}/${pkgbase}/mythgallery"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythgame() {
  pkgdesc="Game emulator module for MythTV"
  depends=("mythtv>=${pkgver}" 'zlib')
#  replaces=('mythgame')
  cd "${srcdir}/${_gitname}/${pkgbase}/mythgame"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythmusic() {
  pkgdesc="Music playing plugin for MythTV"
  depends=("mythtv>=${pkgver}" 'flac' 'libvorbis' 'libcdaudio' 'cdparanoia' 'taglib' 'libvisual-plugins' 'libcdio' 'fftw' )
#  replaces=('mythmusic')
  cd "${srcdir}/${_gitname}/${pkgbase}/mythmusic"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythnetvision() {
  pkgdesc="MythNetvision plugin for MythTV"


  depends=("mythtv>=${pkgver}" 'python-pycurl' 'python-oauth'  'python2-lxml' )
#  replaces=('mythnetvision')
  cd "${srcdir}/${_gitname}/${pkgbase}/mythnetvision"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythnews() {
  pkgdesc="News checking plugin for MythTV"
  depends=("mythtv>=${pkgver}")
#  replaces=('mythnews')
  cd "${srcdir}/${_gitname}/${pkgbase}/mythnews"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythweather() {
  pkgdesc="Weather checking plugin for MythTV"
  depends=("mythtv>=${pkgver}" 'perl-xml-xpath' 'perl-image-size'
           'perl-class-inspector' 'perl-datetime-format-iso8601'
           'perl-date-manip' 'perl-json')
#  replaces=('mythweather')
  cd "${srcdir}/${_gitname}/${pkgbase}/mythweather"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythzoneminder() {
  pkgdesc="Allows for viewing of CCTV cameras through zoneminder"
  depends=("mythtv>=${pkgver}" zoneminder)
#  replaces=('mythzoneminder')
#  install=mythplugins-mythzoneminder.install
  cd "${srcdir}/${_gitname}/${pkgbase}/mythzoneminder"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

md5sums=('cc7e6887acda167fcc5336af33f29411')