Github messages for voidlinux
 help / color / mirror / Atom feed
From: slymattz <slymattz@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
Date: Tue, 23 Jan 2024 14:35:45 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48340@inbox.vuxu.org> (raw)

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

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

https://github.com/slymattz/void-packages slymattz
https://github.com/void-linux/void-packages/pull/48340

simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

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

<!-- 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, (x86_64-LIBC)
-->


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

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

From 0cd9eb394c27d51ab176b09d2042ce3749e52f62 Mon Sep 17 00:00:00 2001
From: Mateusz Sylwestrzak <401237-mattz7@users.noreply.gitlab.com>
Date: Tue, 23 Jan 2024 14:31:12 +0100
Subject: [PATCH] simplify template based on google-chrome template and remove
 the redundant INSTALL and REMOVE scripts

---
 srcpkgs/chromium-widevine/INSTALL  | 43 ------------------------------
 srcpkgs/chromium-widevine/REMOVE   |  9 -------
 srcpkgs/chromium-widevine/template | 18 ++++++++-----
 3 files changed, 11 insertions(+), 59 deletions(-)
 delete mode 100644 srcpkgs/chromium-widevine/INSTALL
 delete mode 100644 srcpkgs/chromium-widevine/REMOVE

diff --git a/srcpkgs/chromium-widevine/INSTALL b/srcpkgs/chromium-widevine/INSTALL
deleted file mode 100644
index f81bb6aeb9dd9..0000000000000
--- a/srcpkgs/chromium-widevine/INSTALL
+++ /dev/null
@@ -1,43 +0,0 @@
-# INSTALL
-
-checksum=b429124b27f9b5ff3a63229823af0d4200020698eb58b75027897ba5b5e327eb
-_baseUrl="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable"
-_filename="google-chrome-stable_${VERSION%_*}-1_amd64.deb"
-DISTFILE="${_baseUrl}/${_filename}"
-BUILD_DIR="$(mktemp -d "${TMPDIR:-/tmp}/$PKGNAME.XXXXXX")"
-
-case "$ACTION" in
-post)
-    # Actions to execute before the package files are unpacked.
-    mkdir -p "${BUILD_DIR}"
-    xbps-uhelper fetch "${DISTFILE}>${BUILD_DIR}/${PKGNAME}.deb"
-
-    # Verify that the archive is as expected
-    if [ "$(xbps-digest "${BUILD_DIR}/${PKGNAME}.deb")" != "${checksum}" ]; then
-        echo "broken file: $_filename"
-        exit 1
-    fi
-
-    # Attempt to unpack the archive
-    (
-        cd "${BUILD_DIR}" && \
-            ar x "${PKGNAME}.deb" && \
-            tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/'
-    ) || exit 1
-
-    # Remove previous components
-    mkdir -p usr/lib/chromium
-    rm -rf usr/lib/chromium/WidevineCdm
-    rm -f usr/lib/chromium-dev/WidevineCdm usr/lib/chromium/libwidevinecdm.so
-
-    # Install new components
-    mv "${BUILD_DIR}/opt/google/chrome/WidevineCdm" usr/lib/chromium
-    ln -Ts WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so usr/lib/chromium/libwidevinecdm.so
-
-    mkdir -p usr/lib/chromium-dev
-    ln -Ts ../chromium/WidevineCdm usr/lib/chromium-dev/WidevineCdm
-
-    # Cleanup
-    rm -r "${BUILD_DIR}"
-    ;;
-esac
diff --git a/srcpkgs/chromium-widevine/REMOVE b/srcpkgs/chromium-widevine/REMOVE
deleted file mode 100644
index 8a10ac08e8654..0000000000000
--- a/srcpkgs/chromium-widevine/REMOVE
+++ /dev/null
@@ -1,9 +0,0 @@
-case "$ACTION" in
-pre)
-	rm -rf usr/lib/chromium/WidevineCdm
-	rm -f usr/lib/chromium-dev/WidevineCdm usr/lib/chromium/libwidevinecdm.so
-
-	rmdir usr/lib/chromium || true
-	rmdir usr/lib/chromium-dev || true
-	;;
-esac
diff --git a/srcpkgs/chromium-widevine/template b/srcpkgs/chromium-widevine/template
index 1c7dda6e4f4fb..d747de664b82a 100644
--- a/srcpkgs/chromium-widevine/template
+++ b/srcpkgs/chromium-widevine/template
@@ -1,18 +1,22 @@
-# Template file for 'chromium-widevine'
-#
-# Keep in sync with 'chromium'!
+# Template file for 'pkgname=chromium-widevine'
 pkgname=chromium-widevine
-version=116.0.5845.96
+version=120.0.6099.129
 revision=1
+_channel=stable
 archs="x86_64"
-create_wrksrc=yes
 depends="chromium binutils xz"
 short_desc="Browser plugin designed for the viewing of premium video content"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="custom:chrome"
-homepage="https://www.google.com/chrome"
+homepage="https://www.google.com/chrome/"
+distfiles="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-${_channel}_${version}-1_amd64.deb"
+checksum=d050758136ec8ea151cb4a1c134c39002b43f64489e40327c60faa071a82ba57
 repository=nonfree
+restricted=yes
+nostrip=yes
 
 do_install() {
-	vlicense ${FILESDIR}/LICENSE
+	vmkdir /usr/lib/chromium
+	vcopy opt/google/chrome/WidevineCdm/ /usr/lib/chromium
+	vlicense "${FILESDIR}"/LICENSE
 }

             reply	other threads:[~2024-01-23 13:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-23 13:35 slymattz [this message]
2024-01-23 14:53 ` [PR PATCH] [Closed]: " ahesford
2024-01-23 14:53 ` ahesford
2024-01-23 15:07 ` slymattz
2024-01-23 15:12 ` slymattz
2024-01-23 15:13 ` slymattz
2024-01-23 15:14 ` slymattz

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-48340@inbox.vuxu.org \
    --to=slymattz@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).