summaryrefslogtreecommitdiffstats
path: root/abs/core/mythplugins/PKGBUILD
blob: dbb06276357b0a84d21440bb639ecc40f165e882 (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
138
139
140
141
142
143
144
# $Id: PKGBUILD 91281 2010-09-26 06:04:21Z remy $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgbase=mythplugins
pkgname=('mythplugins-mytharchive'
         'mythplugins-mythbrowser'
         'mythplugins-mythgallery'
         'mythplugins-mythgame'
         'mythplugins-mythmusic'
         'mythplugins-mythnetvision'
         'mythplugins-mythnews'
         'mythplugins-mythvideo'
         'mythplugins-mythweather'
         'mythplugins-mythweb'
         'mythplugins-mythzoneminder')
pkgver=0.24
pkgrel=1
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' 'python-pycurl' 'python-oauth')
#source=(ftp://ftp.archlinux.org/other/mythtv/${pkgbase}-${pkgver}.tar.xz)

build() {
   _svntrunk="http://svn.mythtv.org/svn/branches/release-0-24-fixes"
   _svnmod="${pkgbase}"

        # get clean copy from SVN repo
        if [ -d "${srcdir}/${pkgbase}" ]
         then
           cd "${srcdir}/${pkgbase}"
           echo "Updating from SVN..."
           svn up
         else
           cd "${srcdir}"
           echo "Checking Out from SVN..."
           svn co "${_svntrunk}/${_svnmod}"
         fi

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

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

package_mythplugins-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}/${pkgbase}/mytharchive"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

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

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

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

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

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

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

package_mythplugins-mythvideo() {
  pkgdesc="Video playback and browsing plugin for MythTV"
  depends=("mythtv>=${pkgver}" 'mplayer' 'perl-xml-simple')
  replaces=('mythvideo')
  cd "${srcdir}/${pkgbase}/mythvideo"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythplugins-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}/${pkgbase}/mythweather"
  make INSTALL_ROOT="${pkgdir}" install || return 1
}

package_mythplugins-mythweb() {
  pkgdesc="Web interface for MythTV's backend"
  depends=("mythtv>=${pkgver}")
  optdepends=('php-apache'
              'lighttpd')
  replaces=('mythweb')
  mkdir -p ${pkgdir}/data/srv/httpd/htdocs/mythweb/{image_cache,php_sessions}
  cp -r ${srcdir}/mythplugins/mythweb/* ${pkgdir}/data/srv/httpd/htdocs/mythweb || return 1
  chown -R http:http ${pkgdir}/data/srv/httpd/htdocs/mythweb
  chmod g+rw ${pkgdir}/data/srv/httpd/htdocs/mythweb/{image_cache,php_sessions,data}
}

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