Date: Sunday, July 24, 2016 @ 07:39:27 Author: arojas Revision: 183901
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: mythtv/repos/community-staging-i686/ mythtv/repos/community-staging-i686/99-mythbackend.rules (from rev 183900, mythtv/trunk/99-mythbackend.rules) mythtv/repos/community-staging-i686/PKGBUILD (from rev 183900, mythtv/trunk/PKGBUILD) mythtv/repos/community-staging-i686/mythbackend.service (from rev 183900, mythtv/trunk/mythbackend.service) mythtv/repos/community-staging-i686/mythtv.install (from rev 183900, mythtv/trunk/mythtv.install) mythtv/repos/community-staging-x86_64/ mythtv/repos/community-staging-x86_64/99-mythbackend.rules (from rev 183900, mythtv/trunk/99-mythbackend.rules) mythtv/repos/community-staging-x86_64/PKGBUILD (from rev 183900, mythtv/trunk/PKGBUILD) mythtv/repos/community-staging-x86_64/mythbackend.service (from rev 183900, mythtv/trunk/mythbackend.service) mythtv/repos/community-staging-x86_64/mythtv.install (from rev 183900, mythtv/trunk/mythtv.install) -----------------------------------------------+ community-staging-i686/99-mythbackend.rules | 6 + community-staging-i686/PKGBUILD | 84 ++++++++++++++++++++++++ community-staging-i686/mythbackend.service | 15 ++++ community-staging-i686/mythtv.install | 22 ++++++ community-staging-x86_64/99-mythbackend.rules | 6 + community-staging-x86_64/PKGBUILD | 84 ++++++++++++++++++++++++ community-staging-x86_64/mythbackend.service | 15 ++++ community-staging-x86_64/mythtv.install | 22 ++++++ 8 files changed, 254 insertions(+) Copied: mythtv/repos/community-staging-i686/99-mythbackend.rules (from rev 183900, mythtv/trunk/99-mythbackend.rules) =================================================================== --- community-staging-i686/99-mythbackend.rules (rev 0) +++ community-staging-i686/99-mythbackend.rules 2016-07-24 07:39:27 UTC (rev 183901) @@ -0,0 +1,6 @@ +# +# Create systemd device units for capture devices +# +SUBSYSTEM=="video4linux", TAG+="systemd" +SUBSYSTEM=="dvb", TAG+="systemd" +SUBSYSTEM=="firewire", TAG+="systemd" Copied: mythtv/repos/community-staging-i686/PKGBUILD (from rev 183900, mythtv/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-07-24 07:39:27 UTC (rev 183901) @@ -0,0 +1,84 @@ +# $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=5 +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" + mythtv-fix-segfault.patch::"https://github.com/MythTV/mythtv/commit/c3a79298.patch" + mythtv-gcc6.patch::"https://github.com/MythTV/mythtv/commit/e4f6e011.patch" + 'mythbackend.service' '99-mythbackend.rules') +sha256sums=('7b3476c0ec0fc17d6b734f0440383815e81850a70b78c12ee40d61a408eba340' + '60696991fcaa24fb61392401bd27cfa35a15b54f4bcc01aee54dc84440c6df99' + 'd35c4738f331ffff7d26d4cb98965689bdc72bd5b9776c1b31e5d97d06be724e' + 'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302' + 'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333') + +prepare() { + cd $pkgname-$pkgver/$pkgname + + find 'bindings/python' 'contrib' 'programs/scripts' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' + +# Fix segfault with GCC 6 https://github.com/MythTV/mythtv/pull/122 + cd .. + patch -p1 -i "$srcdir"/mythtv-fix-segfault.patch +# Fix build with GCC 6 + patch -p1 -i "$srcdir"/mythtv-gcc6.patch +} + +build() { + cd $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 $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" + +# Install udev rules https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_tuners_have_initialized + install -Dm644 "$srcdir"/99-mythbackend.rules "$pkgdir"/usr/lib/udev/rules.d/99-mythbackend.rules +} Copied: mythtv/repos/community-staging-i686/mythbackend.service (from rev 183900, mythtv/trunk/mythbackend.service) =================================================================== --- community-staging-i686/mythbackend.service (rev 0) +++ community-staging-i686/mythbackend.service 2016-07-24 07:39:27 UTC (rev 183901) @@ -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 183900, mythtv/trunk/mythtv.install) =================================================================== --- community-staging-i686/mythtv.install (rev 0) +++ community-staging-i686/mythtv.install 2016-07-24 07:39:27 UTC (rev 183901) @@ -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/99-mythbackend.rules (from rev 183900, mythtv/trunk/99-mythbackend.rules) =================================================================== --- community-staging-x86_64/99-mythbackend.rules (rev 0) +++ community-staging-x86_64/99-mythbackend.rules 2016-07-24 07:39:27 UTC (rev 183901) @@ -0,0 +1,6 @@ +# +# Create systemd device units for capture devices +# +SUBSYSTEM=="video4linux", TAG+="systemd" +SUBSYSTEM=="dvb", TAG+="systemd" +SUBSYSTEM=="firewire", TAG+="systemd" Copied: mythtv/repos/community-staging-x86_64/PKGBUILD (from rev 183900, mythtv/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2016-07-24 07:39:27 UTC (rev 183901) @@ -0,0 +1,84 @@ +# $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=5 +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" + mythtv-fix-segfault.patch::"https://github.com/MythTV/mythtv/commit/c3a79298.patch" + mythtv-gcc6.patch::"https://github.com/MythTV/mythtv/commit/e4f6e011.patch" + 'mythbackend.service' '99-mythbackend.rules') +sha256sums=('7b3476c0ec0fc17d6b734f0440383815e81850a70b78c12ee40d61a408eba340' + '60696991fcaa24fb61392401bd27cfa35a15b54f4bcc01aee54dc84440c6df99' + 'd35c4738f331ffff7d26d4cb98965689bdc72bd5b9776c1b31e5d97d06be724e' + 'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302' + 'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333') + +prepare() { + cd $pkgname-$pkgver/$pkgname + + find 'bindings/python' 'contrib' 'programs/scripts' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' + +# Fix segfault with GCC 6 https://github.com/MythTV/mythtv/pull/122 + cd .. + patch -p1 -i "$srcdir"/mythtv-fix-segfault.patch +# Fix build with GCC 6 + patch -p1 -i "$srcdir"/mythtv-gcc6.patch +} + +build() { + cd $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 $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" + +# Install udev rules https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_tuners_have_initialized + install -Dm644 "$srcdir"/99-mythbackend.rules "$pkgdir"/usr/lib/udev/rules.d/99-mythbackend.rules +} Copied: mythtv/repos/community-staging-x86_64/mythbackend.service (from rev 183900, mythtv/trunk/mythbackend.service) =================================================================== --- community-staging-x86_64/mythbackend.service (rev 0) +++ community-staging-x86_64/mythbackend.service 2016-07-24 07:39:27 UTC (rev 183901) @@ -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 183900, mythtv/trunk/mythtv.install) =================================================================== --- community-staging-x86_64/mythtv.install (rev 0) +++ community-staging-x86_64/mythtv.install 2016-07-24 07:39:27 UTC (rev 183901) @@ -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 +}