summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.24/mythplugins/PKGBUILD
blob: bede955150687b1b5961a349af59715a3727ad11 (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
# $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'
         'mythvideo'
         'mythweather'
         'mythzoneminder')
pkgver=0.24
pkgrel=9
arch=('i686' 'x86_64')
url="http://www.mythtv.org"
license=('GPL')
conflicts=('mythmovies')
makedepends=("mythtv>=${pkgver}" 'mplayer' 'fftw' 'dvdauthor' 'libexif'
             'python-imaging' 'libcdaudio' 'taglib' 'perl-xml-simple' 'dcraw'
             'libvisual' 'perl-xml-xpath' 'perl-image-size'
             'perl-class-inspector' 'perl-datetime-format-iso8601'
             'flac' 'libvorbis' 'python2' 'python-pycurl' 'python-oauth')
source=(http://knoppmyth.net/R6/sources/mythtv-0.24-fixes.tar.bz2)
_gitroot="https://github.com/MythTV/mythtv.git"
_gitname="mythtv"

build() {
  cd "${srcdir}/mythtv"
  msg "Updating from GIT..."
  git pull
  msg "The local files are updated."
  find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' 
  cd ${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')
#  replaces=('mytharchive')
  cd "${srcdir}/mythtv/${pkgbase}/mytharchive"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

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

package_mythnetvision() {
  pkgdesc="MythNetvision plugin for MythTV"
  depends=("mythtv>=${pkgver}" 'python-pycurl' 'python-oauth')
#  replaces=('mythnetvision')
  cd "${srcdir}/mythtv/${pkgbase}/mythnetvision"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

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

package_mythvideo() {
  pkgdesc="Video playback and browsing plugin for MythTV"
  depends=("mythtv>=${pkgver}" 'mplayer' 'perl-xml-simple')
#  replaces=('mythvideo')
  cd "${srcdir}/mythtv/${pkgbase}/mythvideo"
  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')
#  replaces=('mythweather')
  cd "${srcdir}/mythtv/${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}/mythtv/${pkgbase}/mythzoneminder"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}
md5sums=('91488a6b1b05d14c5c5c601908b699e5')