Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
@ 2024-01-23 13:35 slymattz
  2024-01-23 14:53 ` ahesford
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: slymattz @ 2024-01-23 13:35 UTC (permalink / raw)
  To: ml

[-- 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
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
  2024-01-23 13:35 [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts slymattz
@ 2024-01-23 14:53 ` ahesford
  2024-01-23 14:53 ` [PR PATCH] [Closed]: " ahesford
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ahesford @ 2024-01-23 14:53 UTC (permalink / raw)
  To: ml

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

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/48340#issuecomment-1906220454

Comment:
The reason this package is so written is so that users can install from a `nonfree` repo and be notified of updates without tracking them manually. We can't distribute the contents of the package, so we distribute a package that will fetch the contents from the official source at install time.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PR PATCH] [Closed]: simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
  2024-01-23 13:35 [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts slymattz
  2024-01-23 14:53 ` ahesford
@ 2024-01-23 14:53 ` ahesford
  2024-01-23 15:07 ` slymattz
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ahesford @ 2024-01-23 14:53 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
https://github.com/void-linux/void-packages/pull/48340

Description:
<!-- 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)
-->


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
  2024-01-23 13:35 [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts slymattz
  2024-01-23 14:53 ` ahesford
  2024-01-23 14:53 ` [PR PATCH] [Closed]: " ahesford
@ 2024-01-23 15:07 ` slymattz
  2024-01-23 15:12 ` slymattz
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: slymattz @ 2024-01-23 15:07 UTC (permalink / raw)
  To: ml

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

New comment by slymattz on void-packages repository

https://github.com/void-linux/void-packages/pull/48340#issuecomment-1906248720

Comment:
Gotcha. Sorry.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
  2024-01-23 13:35 [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts slymattz
                   ` (2 preceding siblings ...)
  2024-01-23 15:07 ` slymattz
@ 2024-01-23 15:12 ` slymattz
  2024-01-23 15:13 ` slymattz
  2024-01-23 15:14 ` slymattz
  5 siblings, 0 replies; 7+ messages in thread
From: slymattz @ 2024-01-23 15:12 UTC (permalink / raw)
  To: ml

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

New comment by slymattz on void-packages repository

https://github.com/void-linux/void-packages/pull/48340#issuecomment-1906248720

Comment:
Gotcha. Sorry.

BTW is there a way to limit the use of the nonfree repo to just chromium-widevine?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
  2024-01-23 13:35 [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts slymattz
                   ` (3 preceding siblings ...)
  2024-01-23 15:12 ` slymattz
@ 2024-01-23 15:13 ` slymattz
  2024-01-23 15:14 ` slymattz
  5 siblings, 0 replies; 7+ messages in thread
From: slymattz @ 2024-01-23 15:13 UTC (permalink / raw)
  To: ml

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

New comment by slymattz on void-packages repository

https://github.com/void-linux/void-packages/pull/48340#issuecomment-1906248720

Comment:
Gotcha. Sorry.

BTW is there a way to limit the use of the nonfree repo to just chromium-widevine? I'm talking about some sort of whitelist.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts
  2024-01-23 13:35 [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts slymattz
                   ` (4 preceding siblings ...)
  2024-01-23 15:13 ` slymattz
@ 2024-01-23 15:14 ` slymattz
  5 siblings, 0 replies; 7+ messages in thread
From: slymattz @ 2024-01-23 15:14 UTC (permalink / raw)
  To: ml

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

New comment by slymattz on void-packages repository

https://github.com/void-linux/void-packages/pull/48340#issuecomment-1906248720

Comment:
Gotcha. Sorry.

BTW is there a way to limit the use of the nonfree repo to just chromium-widevine? I'm talking about some sort of a whitelist.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-23 15:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-23 13:35 [PR PATCH] simplify template based on google-chrome template and remove the redundant INSTALL and REMOVE scripts slymattz
2024-01-23 14:53 ` ahesford
2024-01-23 14:53 ` [PR PATCH] [Closed]: " 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

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).