Date: Tuesday, April 12, 2016 @ 08:19:43
  Author: arojas
Revision: 170569

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  mythtv/repos/community-staging-i686/
  mythtv/repos/community-staging-i686/PKGBUILD
    (from rev 170568, mythtv/trunk/PKGBUILD)
  mythtv/repos/community-staging-i686/mythbackend.service
    (from rev 170568, mythtv/trunk/mythbackend.service)
  mythtv/repos/community-staging-i686/mythtv.install
    (from rev 170568, mythtv/trunk/mythtv.install)
  mythtv/repos/community-staging-x86_64/
  mythtv/repos/community-staging-x86_64/PKGBUILD
    (from rev 170568, mythtv/trunk/PKGBUILD)
  mythtv/repos/community-staging-x86_64/mythbackend.service
    (from rev 170568, mythtv/trunk/mythbackend.service)
  mythtv/repos/community-staging-x86_64/mythtv.install
    (from rev 170568, mythtv/trunk/mythtv.install)

----------------------------------------------+
 community-staging-i686/PKGBUILD              |   70 +++++++++++++++++++++++++
 community-staging-i686/mythbackend.service   |   15 +++++
 community-staging-i686/mythtv.install        |   22 +++++++
 community-staging-x86_64/PKGBUILD            |   70 +++++++++++++++++++++++++
 community-staging-x86_64/mythbackend.service |   15 +++++
 community-staging-x86_64/mythtv.install      |   22 +++++++
 6 files changed, 214 insertions(+)

Copied: mythtv/repos/community-staging-i686/PKGBUILD (from rev 170568, 
mythtv/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2016-04-12 06:19:43 UTC (rev 170569)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Jonathan Conder <jonno.con...@gmail.com>
+# Contributor: Giovanni Scafora <giova...@archlinux.org>
+# Contributor: Juergen Hoetzel <juer...@archlinux.org>
+# Contributor: <kleptophob...@gmail.com>
+# Contributor: dorphell <dorph...@archlinux.org>
+
+pkgname=mythtv
+pkgver=0.28
+pkgrel=1
+epoch=1
+pkgdesc="A Homebrew PVR project"
+arch=('i686' 'x86_64')
+url="http://www.mythtv.org/";
+license=('GPL')
+depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
+         'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 
'mariadb-clients'
+         'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
+         'perl-net-upnp' 'python2-lxml' 'qt5-webkit' 'qt5-script' 'taglib' 
'urlgrabber'
+         'libx264' 'libvdpau' 'exiv2' 'libxrandr')
+makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 
'x264' 'gdb')
+optdepends=('glew: for GPU commercial flagging'
+            'libcec: for consumer electronics control capabilities'
+            'libxml2: to read blu-ray metadata'
+            'openssl: for AirTunes (RAOP) support')
+conflicts=('myththemes' 'mythplugins-mythvideo')
+replaces=('myththemes' 'mythplugins-mythvideo')
+install='mythtv.install'
+source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz";
+        'mythbackend.service')
+sha256sums=('13d846c8163dcfe091ea3033d176cf5459bdd0ab671f8cf2539a17bd4479a3b2'
+            'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  find 'bindings/python' 'contrib' -type f | xargs sed -i 
's@^#!.*python$@#!/usr/bin/python2@'
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  ARCH="${CARCH/_/-}"
+  ./configure --prefix=/usr \
+              --cpu="$ARCH" \
+              --disable-altivec \
+              --disable-audio-jack \
+              --disable-ccache \
+              --disable-distcc \
+              --enable-libfftw3 \
+              --enable-libmp3lame \
+              --enable-libvpx \
+              --enable-libx264 \
+              --enable-vaapi \
+              --python=python2 \
+              --perl-config-opts=INSTALLDIRS=vendor
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+  make INSTALL_ROOT="$pkgdir" install
+
+  install -D -m644 "$srcdir/mythbackend.service" 
"$pkgdir/usr/lib/systemd/system/mythbackend.service"
+  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
+
+  mkdir -p "$pkgdir/usr/share/mythtv"
+  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
+  mkdir -p "$pkgdir/var/log/mythtv"
+}

Copied: mythtv/repos/community-staging-i686/mythbackend.service (from rev 
170568, mythtv/trunk/mythbackend.service)
===================================================================
--- community-staging-i686/mythbackend.service                          (rev 0)
+++ community-staging-i686/mythbackend.service  2016-04-12 06:19:43 UTC (rev 
170569)
@@ -0,0 +1,15 @@
+[Unit]
+Description=MythTV Backend
+Wants=network-online.target
+After=network.target mysqld.service
+
+[Service]
+Type=simple
+Environment=HOME=/var/lib/mythtv
+User=mythtv
+ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
+ExecStop=/usr/bin/mythshutdown --setscheduledwakeup
+#ExecStop=/usr/bin/mythshutdown --shutdown
+
+[Install]
+WantedBy=multi-user.target

Copied: mythtv/repos/community-staging-i686/mythtv.install (from rev 170568, 
mythtv/trunk/mythtv.install)
===================================================================
--- community-staging-i686/mythtv.install                               (rev 0)
+++ community-staging-i686/mythtv.install       2016-04-12 06:19:43 UTC (rev 
170569)
@@ -0,0 +1,22 @@
+post_upgrade() {
+       if ! getent passwd mythtv &>/dev/null; then
+               getent group mythtv &>/dev/null || groupadd -r mythtv >/dev/null
+               useradd -rmd /var/lib/mythtv -g mythtv -G video,audio,optical 
-s /bin/bash mythtv >/dev/null
+       fi
+
+       echo -e "You may need to load time zone tables in MySQL.\nSee 
http://www.mythtv.org/wiki/MySQL_Time_Zone_Tables";
+}
+
+post_install() {
+       echo -e "For installation information, 
visit:\nhttps://wiki.archlinux.org/index.php/MythTV";
+
+       post_upgrade
+}
+
+post_remove() {
+       echo -e "The MythTV database was not removed. To remove it, run:\n  
mysql -u root -e 'drop database mythconverg;'"
+       [ -d var/lib/mythtv ] && echo "The MythTV home directory 
/var/lib/mythtv can also be removed."
+
+       getent passwd mythtv &>/dev/null && userdel mythtv >/dev/null
+       getent group mythtv &>/dev/null && groupdel mythtv >/dev/null
+}

Copied: mythtv/repos/community-staging-x86_64/PKGBUILD (from rev 170568, 
mythtv/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2016-04-12 06:19:43 UTC (rev 170569)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Jonathan Conder <jonno.con...@gmail.com>
+# Contributor: Giovanni Scafora <giova...@archlinux.org>
+# Contributor: Juergen Hoetzel <juer...@archlinux.org>
+# Contributor: <kleptophob...@gmail.com>
+# Contributor: dorphell <dorph...@archlinux.org>
+
+pkgname=mythtv
+pkgver=0.28
+pkgrel=1
+epoch=1
+pkgdesc="A Homebrew PVR project"
+arch=('i686' 'x86_64')
+url="http://www.mythtv.org/";
+license=('GPL')
+depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
+         'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 
'mariadb-clients'
+         'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
+         'perl-net-upnp' 'python2-lxml' 'qt5-webkit' 'qt5-script' 'taglib' 
'urlgrabber'
+         'libx264' 'libvdpau' 'exiv2' 'libxrandr')
+makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 
'x264' 'gdb')
+optdepends=('glew: for GPU commercial flagging'
+            'libcec: for consumer electronics control capabilities'
+            'libxml2: to read blu-ray metadata'
+            'openssl: for AirTunes (RAOP) support')
+conflicts=('myththemes' 'mythplugins-mythvideo')
+replaces=('myththemes' 'mythplugins-mythvideo')
+install='mythtv.install'
+source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz";
+        'mythbackend.service')
+sha256sums=('13d846c8163dcfe091ea3033d176cf5459bdd0ab671f8cf2539a17bd4479a3b2'
+            'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  find 'bindings/python' 'contrib' -type f | xargs sed -i 
's@^#!.*python$@#!/usr/bin/python2@'
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  ARCH="${CARCH/_/-}"
+  ./configure --prefix=/usr \
+              --cpu="$ARCH" \
+              --disable-altivec \
+              --disable-audio-jack \
+              --disable-ccache \
+              --disable-distcc \
+              --enable-libfftw3 \
+              --enable-libmp3lame \
+              --enable-libvpx \
+              --enable-libx264 \
+              --enable-vaapi \
+              --python=python2 \
+              --perl-config-opts=INSTALLDIRS=vendor
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+  make INSTALL_ROOT="$pkgdir" install
+
+  install -D -m644 "$srcdir/mythbackend.service" 
"$pkgdir/usr/lib/systemd/system/mythbackend.service"
+  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
+
+  mkdir -p "$pkgdir/usr/share/mythtv"
+  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
+  mkdir -p "$pkgdir/var/log/mythtv"
+}

Copied: mythtv/repos/community-staging-x86_64/mythbackend.service (from rev 
170568, mythtv/trunk/mythbackend.service)
===================================================================
--- community-staging-x86_64/mythbackend.service                                
(rev 0)
+++ community-staging-x86_64/mythbackend.service        2016-04-12 06:19:43 UTC 
(rev 170569)
@@ -0,0 +1,15 @@
+[Unit]
+Description=MythTV Backend
+Wants=network-online.target
+After=network.target mysqld.service
+
+[Service]
+Type=simple
+Environment=HOME=/var/lib/mythtv
+User=mythtv
+ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
+ExecStop=/usr/bin/mythshutdown --setscheduledwakeup
+#ExecStop=/usr/bin/mythshutdown --shutdown
+
+[Install]
+WantedBy=multi-user.target

Copied: mythtv/repos/community-staging-x86_64/mythtv.install (from rev 170568, 
mythtv/trunk/mythtv.install)
===================================================================
--- community-staging-x86_64/mythtv.install                             (rev 0)
+++ community-staging-x86_64/mythtv.install     2016-04-12 06:19:43 UTC (rev 
170569)
@@ -0,0 +1,22 @@
+post_upgrade() {
+       if ! getent passwd mythtv &>/dev/null; then
+               getent group mythtv &>/dev/null || groupadd -r mythtv >/dev/null
+               useradd -rmd /var/lib/mythtv -g mythtv -G video,audio,optical 
-s /bin/bash mythtv >/dev/null
+       fi
+
+       echo -e "You may need to load time zone tables in MySQL.\nSee 
http://www.mythtv.org/wiki/MySQL_Time_Zone_Tables";
+}
+
+post_install() {
+       echo -e "For installation information, 
visit:\nhttps://wiki.archlinux.org/index.php/MythTV";
+
+       post_upgrade
+}
+
+post_remove() {
+       echo -e "The MythTV database was not removed. To remove it, run:\n  
mysql -u root -e 'drop database mythconverg;'"
+       [ -d var/lib/mythtv ] && echo "The MythTV home directory 
/var/lib/mythtv can also be removed."
+
+       getent passwd mythtv &>/dev/null && userdel mythtv >/dev/null
+       getent group mythtv &>/dev/null && groupdel mythtv >/dev/null
+}

Reply via email to