diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 85 |
1 files changed, 43 insertions, 42 deletions
@@ -1,11 +1,11 @@ -# Maintainer: Taijian <taijian@posteo.de> +# Maintainer: pvdp <pvdp@email.com> +# Contributor: Taijian <taijian@posteo.de> # Contributor: 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' @@ -13,48 +13,53 @@ pkgname=('mythplugins-mytharchive' 'mythplugins-mythweather' 'mythplugins-mythweb' 'mythplugins-mythzoneminder') -pkgver=30.0 -pkgrel=3 -epoch=1 -arch=('x86_64') +br=fixes/34 +t="${br#*/}+${br%/[0-9][0-9]}" +pkgver=34.0.r16.g95fb10412c +pkgrel=1 +epoch=0 +arch=('any') url="http://www.mythtv.org" license=('GPL') -makedepends=('dvdauthor' 'dvd+rw-tools' 'ffmpeg' 'libexif' 'mesa-libgl' "mythtv=$epoch:$pkgver" +makedepends=('dvdauthor' 'dvd+rw-tools' 'mesa-libgl' "mythtv-git>=$pkgver" 'perl-datetime-format-iso8601' 'perl-date-manip' 'perl-image-size' 'perl-cgi' 'perl-json' 'perl-libwww' 'perl-soap-lite' 'perl-xml-simple' 'perl-xml-xpath' 'libhdhomerun' - 'python2-pillow' 'python2-pycurl' 'python2-oauth' 'gdb' 'libmariadbclient' 'minizip' - 'python2-lxml' 'mysql-python' 'urlgrabber' 'python2-future' 'perl-xml-xpath') -source=("mythtv-$pkgver.tar.gz::https://github.com/MythTV/mythtv/archive/v$pkgver.tar.gz" - "mythweb-$pkgver.tar.gz::https://github.com/MythTV/mythweb/archive/v$pkgver.tar.gz" + 'python-pillow' 'python-pycurl' 'gdb' 'mariadb-libs' 'minizip' + 'python-lxml' 'perl-xml-xpath' 'python-urllib3' 'libcdio-paranoia') +source=("git+https://github.com/MythTV/mythweb#branch=$br" + "git+https://github.com/MythTV/mythtv#branch=$br" ) -sha256sums=('7f7ae9b8927659616f181afc12d7ddc26b0a4b0d13982e2586985f4770640b43' - 'b0569bdd6f5e6fed959d98ff883912142da42e3ee6ea3984ece116f09a5dc01c') -prepare() { - cd "$srcdir/mythtv-$pkgver/$pkgbase" - - find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' +sha256sums=('SKIP' + 'SKIP') - cd "$srcdir/mythweb-$pkgver" +pkgver() { + cd "${srcdir}/mythtv/$pkgbase" + printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')" +} +prepare() { + cd "$srcdir/mythtv/$pkgbase" + + cd "$srcdir/mythweb" + sed -re 's@/usr/local.*/usr/share@/usr/share@' -i 'mythweb.php' } build() { - cd "$srcdir/mythtv-$pkgver/$pkgbase" + cd "$srcdir/mythtv/$pkgbase" ./configure --prefix=/usr \ - --enable-all \ - --python=python2 + --enable-all qmake-qt5 mythplugins.pro make -s } package_mythplugins-mytharchive() { pkgdesc="Create DVDs or archive recorded shows in MythTV" - depends=('dvdauthor' 'dvd+rw-tools' 'ffmpeg' 'mythtv' 'python2-pillow') + depends=('dvdauthor' 'dvd+rw-tools' 'mythtv' 'python-pillow') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mytharchive" + cd "$srcdir/mythtv/$pkgbase/mytharchive" make INSTALL_ROOT="$pkgdir" install } @@ -62,15 +67,7 @@ package_mythplugins-mythbrowser() { pkgdesc="Mini web browser for MythTV" depends=('mythtv') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythbrowser" - make INSTALL_ROOT="$pkgdir" install -} - -package_mythplugins-mythgallery() { - pkgdesc="Image gallery plugin for MythTV" - depends=('libexif' 'mythtv') - - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythgallery" + cd "$srcdir/mythtv/$pkgbase/mythbrowser" make INSTALL_ROOT="$pkgdir" install } @@ -78,7 +75,7 @@ package_mythplugins-mythgame() { pkgdesc="Game emulator plugin for MythTV" depends=('mythtv' 'minizip') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythgame" + cd "$srcdir/mythtv/$pkgbase/mythgame" make INSTALL_ROOT="$pkgdir" install } @@ -86,15 +83,15 @@ package_mythplugins-mythmusic() { pkgdesc="Music playing plugin for MythTV" depends=('mythtv' 'libcdio-paranoia') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythmusic" + cd "$srcdir/mythtv/$pkgbase/mythmusic" make INSTALL_ROOT="$pkgdir" install } package_mythplugins-mythnetvision() { pkgdesc="MythNetvision plugin for MythTV" - depends=('mythtv' 'python2-oauth') + depends=('mythtv' 'python-urllib3') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythnetvision" + cd "$srcdir/mythtv/$pkgbase/mythnetvision" make INSTALL_ROOT="$pkgdir" install } @@ -102,7 +99,7 @@ package_mythplugins-mythnews() { pkgdesc="News checking plugin for MythTV" depends=('mythtv') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythnews" + cd "$srcdir/mythtv/$pkgbase/mythnews" make INSTALL_ROOT="$pkgdir" install } @@ -112,7 +109,7 @@ package_mythplugins-mythweather() { 'perl-xml-simple' 'perl-xml-xpath' 'perl-image-size' 'perl-datetime-format-iso8601') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythweather" + cd "$srcdir/mythtv/$pkgbase/mythweather" make INSTALL_ROOT="$pkgdir" install } @@ -120,18 +117,22 @@ package_mythplugins-mythweb() { pkgdesc="Web interface for the MythTV scheduler" depends=('mythtv' 'perl-cgi') optdepends=('lighttpd' - 'php-apache') + 'php-apache' + 'php-fpm' + 'nginx') + + sed -i 's/unix.*-fpm\.sock;/unix:\/var\/run\/php-fpm\/php-fpm\.sock;/' "$srcdir/mythweb/mythweb.conf.nginx" mkdir -p "$pkgdir/var/lib/mythtv/mythweb"/{image_cache,php_sessions} - cp -R "$srcdir/mythweb-$pkgver"/* "$pkgdir/var/lib/mythtv/mythweb" + cp -R "$srcdir/mythweb"/* "$pkgdir/var/lib/mythtv/mythweb" chown -R http:http "$pkgdir/var/lib/mythtv/mythweb" chmod g+rw "$pkgdir/var/lib/mythtv/mythweb"/{image_cache,php_sessions} } package_mythplugins-mythzoneminder() { pkgdesc="View CCTV footage from zoneminder in MythTV" - depends=('mythtv' 'libmariadbclient' 'zoneminder') + depends=('mythtv' 'mariadb-libs' 'zoneminder') - cd "$srcdir/mythtv-$pkgver/$pkgbase/mythzoneminder" + cd "$srcdir/mythtv/$pkgbase/mythzoneminder" make INSTALL_ROOT="$pkgdir" install } |