Date: Saturday, March 7, 2015 @ 23:55:30 Author: arojas Revision: 128874
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 128873, mythtv/trunk/PKGBUILD) mythtv/repos/community-staging-i686/mythbackend.service (from rev 128873, mythtv/trunk/mythbackend.service) mythtv/repos/community-staging-i686/mythtv.install (from rev 128873, mythtv/trunk/mythtv.install) mythtv/repos/community-staging-x86_64/ mythtv/repos/community-staging-x86_64/PKGBUILD (from rev 128873, mythtv/trunk/PKGBUILD) mythtv/repos/community-staging-x86_64/mythbackend.service (from rev 128873, mythtv/trunk/mythbackend.service) mythtv/repos/community-staging-x86_64/mythtv.install (from rev 128873, mythtv/trunk/mythtv.install) ----------------------------------------------+ community-staging-i686/PKGBUILD | 74 +++++++++++++++++++++++++ community-staging-i686/mythbackend.service | 15 +++++ community-staging-i686/mythtv.install | 22 +++++++ community-staging-x86_64/PKGBUILD | 74 +++++++++++++++++++++++++ community-staging-x86_64/mythbackend.service | 15 +++++ community-staging-x86_64/mythtv.install | 22 +++++++ 6 files changed, 222 insertions(+) Copied: mythtv/repos/community-staging-i686/PKGBUILD (from rev 128873, mythtv/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2015-03-07 22:55:30 UTC (rev 128874) @@ -0,0 +1,74 @@ +# $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.27.4 +pkgrel=3 +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' 'qtwebkit' 'taglib' 'urlgrabber' 'libx264') +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' + 'udisks: detect changes to removable media' + 'xmltv: to download tv listings') +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' + 'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch') +sha256sums=('1f734ffc776e4938aa913e49ce94279f2c2d520c62af278f1d04fe399723365b' + 'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302' + '8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3') + +prepare() { + cd "$srcdir/$pkgname-$pkgver/$pkgname" + + find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' + patch -Np2 -i "$srcdir/libcec-2-support.2.patch" +} + +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 128873, mythtv/trunk/mythbackend.service) =================================================================== --- community-staging-i686/mythbackend.service (rev 0) +++ community-staging-i686/mythbackend.service 2015-03-07 22:55:30 UTC (rev 128874) @@ -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 128873, mythtv/trunk/mythtv.install) =================================================================== --- community-staging-i686/mythtv.install (rev 0) +++ community-staging-i686/mythtv.install 2015-03-07 22:55:30 UTC (rev 128874) @@ -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 128873, mythtv/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2015-03-07 22:55:30 UTC (rev 128874) @@ -0,0 +1,74 @@ +# $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.27.4 +pkgrel=3 +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' 'qtwebkit' 'taglib' 'urlgrabber' 'libx264') +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' + 'udisks: detect changes to removable media' + 'xmltv: to download tv listings') +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' + 'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch') +sha256sums=('1f734ffc776e4938aa913e49ce94279f2c2d520c62af278f1d04fe399723365b' + 'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302' + '8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3') + +prepare() { + cd "$srcdir/$pkgname-$pkgver/$pkgname" + + find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' + patch -Np2 -i "$srcdir/libcec-2-support.2.patch" +} + +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 128873, mythtv/trunk/mythbackend.service) =================================================================== --- community-staging-x86_64/mythbackend.service (rev 0) +++ community-staging-x86_64/mythbackend.service 2015-03-07 22:55:30 UTC (rev 128874) @@ -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 128873, mythtv/trunk/mythtv.install) =================================================================== --- community-staging-x86_64/mythtv.install (rev 0) +++ community-staging-x86_64/mythtv.install 2015-03-07 22:55:30 UTC (rev 128874) @@ -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 +}