From 406bd38a99f71eaf4c81e70c0728e1f9b2f78615 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 17 Feb 2023 20:49:19 -0500 Subject: mythtv: add mythtv-setup.desktop and rename mythtv.desktop to mythfrontend.desktop --- linhes/mythtv/PKGBUILD | 24 ++++++++++++++++++++---- linhes/mythtv/mythfrontend.desktop | 6 ++++++ linhes/mythtv/mythtv-setup.desktop | 6 ++++++ linhes/mythtv/mythtv.desktop | 6 ------ 4 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 linhes/mythtv/mythfrontend.desktop create mode 100644 linhes/mythtv/mythtv-setup.desktop delete mode 100644 linhes/mythtv/mythtv.desktop diff --git a/linhes/mythtv/PKGBUILD b/linhes/mythtv/PKGBUILD index e82becb..b204d52 100644 --- a/linhes/mythtv/PKGBUILD +++ b/linhes/mythtv/PKGBUILD @@ -83,18 +83,30 @@ replaces=('myththemes' 'mythplugins-mythvideo' 'mythtv-git') source=( "git+https://github.com/MythTV/mythtv#branch=fixes/32" 'mythbackend.service' - 'mythtv.desktop' + 'mythfrontend.desktop' + 'mythtv-setup.desktop' 'mythtv.png' '99-mythbackend.rules' 'sysusers.d' ) sha256sums=('SKIP' - '37c07fc6b1fac03f6c8ab394b3e2c8223ea7d8c6af0056d397f60f781916f2bb' - '3fd2018d0d5aaa7d530835305dac80d4ca7d8fc991cdf9e1cebadebd86e25c03' + '6adb9d3370111c7d0000b215ae2d83a07a19c1bef5c22657f8caa9593c8efda5' + 'eb220f5c8995ced990678559456fc36fdde86c589770fcf390209a05980fc070' + 'e7965a0d232aefcf8e5e89a96f46b7582a9590d2ae9b4f5b8ee9ab2baa913527' '12cb52bf9b084a4f16419c9370fef0450ce6a11308b0c3f7240f4f83df7e2ab6' 'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333' '470de0a4050c16c7af11a0e5cfe2810b7daae42df4acf5456c7eae274dc7c5ae') +prepare() { + msg2 "PKGBUILD pkgver: $pkgver" + cd "${srcdir}/mythtv/mythtv" + gitsrcver=`echo "32+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 +} + pkgver() { cd "${srcdir}/mythtv/mythtv" echo -n "32+fixes.$(git show -s --format=%cd --date=short | tr -d -).$(git rev-parse --short=8 HEAD)" @@ -103,6 +115,9 @@ pkgver() { build() { cd "${srcdir}/mythtv/mythtv" +CFLAGS="-march=x86-64 -mtune=amdfam10 -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" # CFLAGS="${CFLAGS/flto=auto/fPIC}" # CXXFLAGS="${CXXFLAGS/flto=auto/fPIC}" # LDFLAGS="${LDFLAGS/flto=auto/fPIC}" @@ -143,5 +158,6 @@ package() { # 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" + install -Dm644 "$srcdir/mythfrontend.desktop" "$pkgdir/usr/share/applications/mythfrontend.desktop" + install -Dm644 "$srcdir/mythtv-setup.desktop" "$pkgdir/usr/share/applications/mythtv-setup.desktop" } diff --git a/linhes/mythtv/mythfrontend.desktop b/linhes/mythtv/mythfrontend.desktop new file mode 100644 index 0000000..fb1562f --- /dev/null +++ b/linhes/mythtv/mythfrontend.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=MythFrontend +Comment=MythFrontend is the primary playback application for MythTV +Exec=mythfrontend --syslog local6 --noupnp +Type=Application +Icon=mythtv diff --git a/linhes/mythtv/mythtv-setup.desktop b/linhes/mythtv/mythtv-setup.desktop new file mode 100644 index 0000000..fe49a97 --- /dev/null +++ b/linhes/mythtv/mythtv-setup.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=MythTV Setup +Comment=Setup application for the MythTV backend server +Exec=mythtv-setup --syslog local6 +Type=Application +Icon=mythtv diff --git a/linhes/mythtv/mythtv.desktop b/linhes/mythtv/mythtv.desktop deleted file mode 100644 index 2a963dd..0000000 --- a/linhes/mythtv/mythtv.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Name=MythTV -Comment=A frontend for all content on a mythtv-backend -Exec=mythfrontend --syslog local6 --noupnp -Type=Application -Icon=mythtv -- cgit v0.12