summaryrefslogtreecommitdiff
path: root/community/mythplugins
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mythplugins
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mythplugins')
-rw-r--r--community/mythplugins/PKGBUILD141
-rw-r--r--community/mythplugins/mtd.rc36
-rw-r--r--community/mythplugins/mythplugins-mythzoneminder.install3
3 files changed, 180 insertions, 0 deletions
diff --git a/community/mythplugins/PKGBUILD b/community/mythplugins/PKGBUILD
new file mode 100644
index 000000000..45b9cb4ee
--- /dev/null
+++ b/community/mythplugins/PKGBUILD
@@ -0,0 +1,141 @@
+# $Id: PKGBUILD 42515 2011-03-17 12:34:35Z andrea $
+# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
+# Contributor: 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=3
+arch=('i686' 'x86_64')
+url="http://www.mythtv.org"
+license=('GPL')
+makedepends=("mythtv>=$pkgver" 'cdrkit' 'dvdauthor' 'dvd+rw-tools' 'ffmpeg'
+ 'python-imaging' 'libexif' 'perl-date-manip' 'zlib' 'cdparanoia'
+ 'flac' 'libcdaudio' 'libvisual' 'libvorbis' 'sdl' 'taglib'
+ 'python2-oauth' 'python-pycurl' 'mplayer' 'perl-date-manip'
+ 'perl-libwww' 'perl-soap-lite' 'perl-xml-sax' 'perl-xml-simple'
+ 'perl-xml-xpath' 'perl-image-size' 'perl-datetime-format-iso8601')
+source=("ftp://ftp.osuosl.org/pub/mythtv/$pkgbase-$pkgver.tar.bz2"
+ 'mtd.rc')
+md5sums=('2bcb195a82475648040910d7afd054d1'
+ '476c12ba074794ad7f4ae092bdf949d6')
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
+
+ ./configure --prefix=/usr \
+ --enable-all \
+ --python=python2
+ qmake mythplugins.pro
+ make
+}
+
+package_mythplugins-mytharchive() {
+ pkgdesc="Create DVDs or archive recorded shows in MythTV"
+ depends=("mythtv>=$pkgver" 'cdrkit' 'dvdauthor' 'dvd+rw-tools' 'ffmpeg'
+ 'python-imaging')
+
+ cd "$srcdir/$pkgbase-$pkgver/mytharchive"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythbrowser() {
+ pkgdesc="Mini web browser for MythTV"
+ depends=("mythtv>=$pkgver")
+
+ cd "$srcdir/$pkgbase-$pkgver/mythbrowser"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythgallery() {
+ pkgdesc="Image gallery plugin for MythTV"
+ depends=("mythtv>=$pkgver" 'libexif')
+
+ cd "$srcdir/$pkgbase-$pkgver/mythgallery"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythgame() {
+ pkgdesc="Game emulator plugin for MythTV"
+ depends=("mythtv>=$pkgver")
+
+ cd "$srcdir/$pkgbase-$pkgver/mythgame"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythmusic() {
+ pkgdesc="Music playing plugin for MythTV"
+ depends=("mythtv>=$pkgver" 'cdparanoia' 'flac' 'libcdaudio' 'libvisual'
+ 'libvorbis' 'sdl' 'taglib')
+
+ cd "$srcdir/$pkgbase-$pkgver/mythmusic"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythnetvision() {
+ pkgdesc="MythNetvision plugin for MythTV"
+ depends=("mythtv>=$pkgver" 'python2-oauth' 'python-pycurl')
+
+ cd "$srcdir/$pkgbase-$pkgver/mythnetvision"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythnews() {
+ pkgdesc="News checking plugin for MythTV"
+ depends=("mythtv>=$pkgver")
+
+ cd "$srcdir/$pkgbase-$pkgver/mythnews"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythvideo() {
+ pkgdesc="Video playback and browsing plugin for MythTV"
+ depends=("mythtv>=$pkgver" 'mplayer')
+
+ cd "$srcdir/$pkgbase-$pkgver/mythvideo"
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -D -m755 "$srcdir/mtd.rc" "$pkgdir/etc/rc.d/mtd"
+}
+
+package_mythplugins-mythweather() {
+ pkgdesc="Weather checking plugin for MythTV"
+ depends=("mythtv>=$pkgver" 'perl-date-manip' 'perl-libwww' 'perl-soap-lite'
+ 'perl-xml-sax' 'perl-xml-simple' 'perl-xml-xpath' 'perl-image-size'
+ 'perl-datetime-format-iso8601')
+
+ cd "$srcdir/$pkgbase-$pkgver/mythweather"
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+package_mythplugins-mythweb() {
+ pkgdesc="Web interface for the MythTV scheduler"
+ depends=("mythtv>=$pkgver")
+ optdepends=('php-apache'
+ 'lighttpd')
+
+ mkdir -p "$pkgdir/srv/http/mythweb"/{image_cache,php_sessions}
+ cp -R "$srcdir/$pkgbase-$pkgver/mythweb"/* "$pkgdir/srv/http/mythweb"
+ chown -R http:http "$pkgdir/srv/http/mythweb"
+ chmod g+rw "$pkgdir/srv/http/mythweb"/{image_cache,php_sessions,data}
+}
+
+package_mythplugins-mythzoneminder() {
+ pkgdesc="View CCTV footage from zoneminder in MythTV"
+ depends=("mythtv>=$pkgver")
+
+ install='mythplugins-mythzoneminder.install'
+ cd "$srcdir/$pkgbase-$pkgver/mythzoneminder"
+ make INSTALL_ROOT="$pkgdir" install
+}
diff --git a/community/mythplugins/mtd.rc b/community/mythplugins/mtd.rc
new file mode 100644
index 000000000..1f46dfed1
--- /dev/null
+++ b/community/mythplugins/mtd.rc
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/bin/mtd`
+case "$1" in
+ start)
+ stat_busy "Starting Myth Transcoding Daemon"
+ [ -z "$PID" ] && /usr/bin/mtd -d
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ echo $PID > /var/run/mtd.pid
+ add_daemon mythtranscode
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Myth Transcoding Daemon"
+ [ ! -z "$PID" ] && kill $PID &>/dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon mtd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
diff --git a/community/mythplugins/mythplugins-mythzoneminder.install b/community/mythplugins/mythplugins-mythzoneminder.install
new file mode 100644
index 000000000..142212b56
--- /dev/null
+++ b/community/mythplugins/mythplugins-mythzoneminder.install
@@ -0,0 +1,3 @@
+post_install() {
+ echo "If you want to use this plugin, install zoneminder from AUR."
+}