Github messages for voidlinux
 help / color / mirror / Atom feed
From: bhepple <bhepple@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Add mythtv template-33.1+fixes-33
Date: Mon, 16 Oct 2023 10:54:42 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46718@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

There is a new pull request by bhepple against master on the void-packages repository

https://github.com/bhepple/void-packages mythtv
https://github.com/void-linux/void-packages/pull/46718

Add mythtv template-33.1+fixes-33
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46718.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mythtv-46718.patch --]
[-- Type: text/x-diff, Size: 4735 bytes --]

From a37888613f11bc55132308fc1c0bd33d24d228b1 Mon Sep 17 00:00:00 2001
From: Bob Hepple <bob.hepple@gmail.com>
Date: Mon, 16 Oct 2023 18:52:07 +1000
Subject: [PATCH] Add mythtv template-33.1+fixes-33

---
 srcpkgs/mythtv/template | 140 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 140 insertions(+)
 create mode 100644 srcpkgs/mythtv/template

diff --git a/srcpkgs/mythtv/template b/srcpkgs/mythtv/template
new file mode 100644
index 0000000000000..c4b2fe1a1a255
--- /dev/null
+++ b/srcpkgs/mythtv/template
@@ -0,0 +1,140 @@
+pkgname=mythtv
+version=33.1
+release=1
+build_style=gnu-configure
+short_desc="A Homebrew PVR project"
+maintainer="Bob Hepple <bob.hepple@gmail.com>"
+license='GPL-2.0-only'
+homepage="https://www.mythtv.org/"
+distfiles="https://github.com/MythTV/mythtv/archive/v%{version}/mythtv-%{version}.tar.gz"
+depends=(
+    'exiv2'
+    'fftw'
+    'jack'
+    'lame'
+    'libass'
+    'libavc1394'
+    'libbluray'
+    'libhdhomerun'
+    'libiec61883'
+    'libpulseaudio'
+    'libsamplerate'
+    'libva'
+    'libvdpau'
+    'libvpx'
+    'libxinerama' ... X
+    'libxml2'
+    'libxrandr' xrandr ?
+    'libzip'
+    'lzo'
+    'python-pyqt5-webengine' ... python3-pyqt6-webengine
+    'python-requests-cache' ... X
+    'qt5-script'
+    'soundtouch'
+    'taglib'
+    'x264'
+    'x265'
+)
+makedepends=(
+    'git'
+    'help2man'
+    'libcdio'
+    'libcec'
+    'libmariadbclient'
+    'libxml2'
+    'lirc' ... glirc
+    'perl-dbd-mysql'
+    'perl-io-socket-inet6'
+    'perl-libwww'
+    'perl-net-upnp'
+    'perl-xml-simple'
+    'perl-xml-xpath'
+    'python-future'
+    'python-lxml'
+    'python-mysqlclient'
+    'python-requests'
+    'python-setuptools'
+    'python-simplejson'
+    'yasm'
+)
+optdepends=(
+    'glew: for GPU commercial flagging'
+    'libcec: for consumer electronics control capabilities'
+    'mariadb: Database-Backend for server deployment'
+    'mariadb-clients: Database-Frontend for client deployment'
+    'perl-dbd-mysql: Perl bindings'
+    'perl-io-socket-inet6: Perl bindings'
+    'perl-libwww: Perl bindings'
+    'perl-net-upnp: Perl bindings'
+    'perl-xml-simple: Perl bindings'
+    'perl-xml-xpath: Perl bindings'
+    'python-future: Python bindings'
+    'python-lxml: Python bindings'
+    'python-mysqlclient: Python bindings'
+    'python-requests: Python bindings'
+    'python-requests-cache: Python bindings'
+    'python-simplejson: Python bindings'
+)
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=(
+    "git+https://github.com/MythTV/mythtv#branch=fixes/33"
+    'mythbackend.service'
+    'mythtv.desktop'
+    'mythtv.png'
+    '99-mythbackend.rules'
+    'sysusers.d'
+)
+sha256sums=(
+    'SKIP'
+    '5ec7b0f6a3767068d1912188c6bc8957583a543abcb5b4ef52ea7126e316525b'
+    '3fd2018d0d5aaa7d530835305dac80d4ca7d8fc991cdf9e1cebadebd86e25c03'
+    '12cb52bf9b084a4f16419c9370fef0450ce6a11308b0c3f7240f4f83df7e2ab6'
+    'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333'
+    '470de0a4050c16c7af11a0e5cfe2810b7daae42df4acf5456c7eae274dc7c5ae'
+)
+
+pkgver() {
+  cd "$srcdir/mythtv/mythtv"
+  printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
+}
+
+build() {
+  cd "$srcdir/mythtv/mythtv"
+
+  ARCH="${CARCH/_/-}"
+  ./configure --prefix=/usr \
+              --cpu="$ARCH" \
+              --disable-altivec \
+              --enable-audio-jack \
+              --disable-distcc \
+              --enable-libmp3lame \
+              --enable-libvpx \
+              --enable-libx264 \
+              --enable-libx265 \
+              --enable-vaapi \
+              --with-bindings=python \
+              --with-bindings=perl \
+              --perl-config-opts=INSTALLDIRS=vendor
+  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 "$srcdir/mythtv/mythtv/database/mc.sql" "$pkgdir/usr/share/mythtv/mc.sql"
+  install -D -m644 "$srcdir/sysusers.d" "$pkgdir/usr/lib/sysusers.d/mythtv.conf"
+
+  mkdir -p "$pkgdir/usr/share/mythtv"
+  cp -R "$srcdir/mythtv/mythtv/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/mythtv.desktop" "$pkgdir/usr/share/applications/mythtv.desktop"
+}

             reply	other threads:[~2023-10-16  8:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-16  8:54 bhepple [this message]
2023-10-16  8:55 ` bhepple
2024-01-15  1:49 ` github-actions
2024-01-30  1:44 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46718@inbox.vuxu.org \
    --to=bhepple@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).