diff options
Diffstat (limited to 'linhes/mythtv/PKGBUILD')
| -rw-r--r-- | linhes/mythtv/PKGBUILD | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/linhes/mythtv/PKGBUILD b/linhes/mythtv/PKGBUILD new file mode 100644 index 0000000..b5046fa --- /dev/null +++ b/linhes/mythtv/PKGBUILD @@ -0,0 +1,172 @@ +# Maintainer: John Bergqvist <johnlbergqvist@gmail.com> +# Contributor: James Bunton <jamesbunton@delx.net.au> +# Contributor: Taijian <taijian@posteo.de> +# Contributor: Jonathan Conder <jonno.conder@gmail.com> +# Contributor: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Juergen Hoetzel <juergen@archlinux.org> +# Contributor: <kleptophobiac@gmail.com> +# Contributor: dorphell <dorphell@archlinux.org> + +pkgname=mythtv +pkgver=36+fixes.20260410.0fb9e4f3 +pkgrel=4 +pkgdesc="A Homebrew PVR project" +_mythversion=36 +arch=('x86_64') +url="https://www.mythtv.org/" +license=('GPL') +depends=( + 'aom' + 'dav1d' + 'exiv2' + 'lame' + 'libass' + 'libavc1394' + 'libbluray' + 'libhdhomerun' + 'libiec61883' + 'libpulse' + 'libsamplerate' + 'libva' + 'libvdpau' + 'libvpx' + 'libxinerama' + 'libxml2' + 'libxrandr' + 'libzip' + 'qt5-script' +# 'qt6-base' + 'soundtouch' + 'taglib' + 'x264' + 'x265' + 'libcec' + 'mariadb' + 'mariadb-clients' + 'perl-dbd-mysql' + 'perl-io-socket-inet6' + 'perl-json-xs' + 'perl-libwww' + 'perl-net-upnp' + 'perl-xml-simple' + 'perl-xml-xpath' + 'python-lxml' + 'python-mysqlclient' + 'python-pyqt5-webengine' +# 'python-pyqt6-webengine' + 'python-requests' + 'python-requests-cache' + 'xmltv' + 'xvidcore' +) +makedepends=( + 'git' + 'libcdio' + 'libmariadbclient' + 'lirc' + 'nasm' + 'python-pip' + 'python-setuptools' + 'python-wheel' + 'qt5-tools' +) + +options=(!lto) +conflicts=('myththemes' 'mythplugins-mythvideo' 'mythtv-git') +replaces=('myththemes' 'mythplugins-mythvideo' 'mythtv-git') + +patches="defaultThemeLinHES.patch + autoskip_reduce_commskip_jumpback.patch + 0227-OSD-Add-interlaced-status-to-OSD-debug-screen.patch" +# 0031-UPnP-Reduce-startup-latency-by-moving-blocking-code-to-own-thread.patch + +source=( + "git+https://github.com/MythTV/mythtv#branch=fixes/${_mythversion}" + 'mythbackend.service' + 'mythfrontend.desktop' + 'mythtv-setup.desktop' + 'mythtv.png' + '99-mythbackend.rules' + 'sysusers.d' + $patches +) + +sha256sums=('SKIP' + '6adb9d3370111c7d0000b215ae2d83a07a19c1bef5c22657f8caa9593c8efda5' + '1d989fa50c7c3b45b1aa2bdbb5dc6e446485004afb81c65b4b5be1dc85d4bc5f' + '2f58fc3e30723d2bc1685dc2c6301373cc2f070588ce8865b0d4907d8cd6a436' + '12cb52bf9b084a4f16419c9370fef0450ce6a11308b0c3f7240f4f83df7e2ab6' + 'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333' + '470de0a4050c16c7af11a0e5cfe2810b7daae42df4acf5456c7eae274dc7c5ae' + '3ff9f48ead83a8dd7a87cc08df066c00813b48b9171cc7bf74ba0e3cb2570d00' + '8a81e724d902976056dc824e7304df343c230ce67ec6ce1d18e110c5ef818ef6' + '630c80c588a9b278c4421d356c5cbaa0debf149524bc896656b580b89d8fae88') + +prepare() { + msg2 "PKGBUILD pkgver: $pkgver" + cd "${srcdir}/mythtv/mythtv" + gitsrcver=`echo "${_mythversion}+fixes.$(git show -s --format=%cd --date=short | tr -d -).$(git rev-parse --short=8 HEAD)"` + msg2 "GIT SOURCE pkgver: $gitsrcver" + if [ $pkgver = $gitsrcver ]; then + warning "pkgver did NOT change. Consider increasing pkgrel ($pkgrel)." + fi + echo $srcdir + msg "--------------------------applying patches------------------------------" + for i in `echo ${patches[@]:0}` + do + echo applying $i + patch -Np2 -i ${srcdir}/$i || return 1 + echo "-----------------------------" + done + msg "--------------------------done applying patches-------------------------" + +# msg "Updating en_us Translation" +# lrelease -removeidentical i18n/mythfrontend_en_us.ts +} + +pkgver() { + cd "${srcdir}/mythtv/mythtv" + echo -n "${_mythversion}+fixes.$(git show -s --format=%cd --date=short | tr -d -).$(git rev-parse --short=8 HEAD)" +} + +build() { + cd "${srcdir}/mythtv/mythtv" + + ARCH="${CARCH/_/-}" + ./configure --prefix=/usr \ + --cpu="$ARCH" \ + --enable-libaom \ + --enable-libdav1d \ + --enable-libmp3lame \ + --enable-libvpx \ + --enable-libx264 \ + --enable-libx265 \ + --enable-libxvid \ + --with-bindings=python \ + --with-bindings=perl \ + --perl-config-opts=INSTALLDIRS=vendor + + echo "###### STARTING MAKE ####" + make +} + +package() { + cd "${srcdir}/mythtv/mythtv" + 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" + install -D -m644 "$srcdir/sysusers.d" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" + + 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" + + # Install desktop file + install -Dm644 "$srcdir/mythtv.png" "$pkgdir/usr/share/pixmaps/mythtv.png" + install -Dm644 "$srcdir/mythfrontend.desktop" "$pkgdir/usr/share/applications/mythfrontend.desktop" + install -Dm644 "$srcdir/mythtv-setup.desktop" "$pkgdir/usr/share/applications/mythtv-setup.desktop" +} |
