Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Add google-chrome-unstable to srcpkgs
Date: Fri, 27 Dec 2019 22:50:07 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17824@inbox.vuxu.org> (raw)

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

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

https://github.com/cherryshine/void-packages master
https://github.com/void-linux/void-packages/pull/17824

Add google-chrome-unstable to srcpkgs
Add google-chrome-unstable template file so people can install dev(unstable) version too.

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

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

From 7836be6e4271fd1961416ce0c039c8084adc07b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Samet=20C=C3=B6mert?= <cokciddisin@gmail.com>
Date: Sat, 28 Dec 2019 00:47:10 +0300
Subject: [PATCH] Add google-chrome-unstable to srcpkgs

---
 srcpkgs/google-chrome-unstable/template | 49 +++++++++++++++++++++++++
 srcpkgs/google-chrome-unstable/update   |  7 ++++
 2 files changed, 56 insertions(+)
 create mode 100644 srcpkgs/google-chrome-unstable/template
 create mode 100644 srcpkgs/google-chrome-unstable/update

diff --git a/srcpkgs/google-chrome-unstable/template b/srcpkgs/google-chrome-unstable/template
new file mode 100644
index 00000000000..401a19417e5
--- /dev/null
+++ b/srcpkgs/google-chrome-unstable/template
@@ -0,0 +1,49 @@
+# Template file for 'google-chrome-unstable'
+_chromeVersion=81.0.4000.3
+_chromeRevision=1
+_channel=unstable
+
+pkgname=google-chrome-unstable
+version="${_chromeVersion}.${_chromeRevision}"
+revision=1
+maintainer="Samet Comert <cokciddisin@gmail.com>"
+homepage="https://www.google.com/chrome/dev"
+license="chrome"
+short_desc="Attempt at creating a safer, faster, and more stable browser"
+archs="x86_64"
+repository=nonfree
+restricted=yes
+nostrip=yes
+
+_baseUrl="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-unstable"
+_filename="google-chrome-${_channel}_${_chromeVersion}-${_chromeRevision}_amd64.deb"
+_chromeUrl="${_baseUrl}/${_filename}"
+
+distfiles="$_chromeUrl"
+checksum=b8145334c396406a453dbbf7b5f790e3a093f83a23320ac4d37c13964f1f91fb
+
+do_extract() {
+	mkdir -p ${DESTDIR}
+	ar x ${XBPS_SRCDISTDIR}/google-chrome-unstable-${version}/${_filename}
+}
+
+do_install() {
+	tar xf data.tar.xz -C ${DESTDIR}
+
+	# Install the icons
+	for size in 16 24 32 48 64 128 256; do
+		# Create the google chrome xdg directory
+		mkdir -p ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps
+
+		# Copy the google chrome icon
+		mv ${DESTDIR}/opt/google/chrome-unstable/product_logo_${size}_dev.png \
+		   ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/google-chrome-unstable.png
+	done
+
+	# Remove unused icons
+	rm ${DESTDIR}/opt/google/chrome-unstable/*.xpm
+
+	# Remove the Debian/Ubuntu crontab
+	rm -rf ${DESTDIR}/etc
+	rm -rf ${DESTDIR}/opt/google/chrome-unstable/cron
+}
diff --git a/srcpkgs/google-chrome-unstable/update b/srcpkgs/google-chrome-unstable/update
new file mode 100644
index 00000000000..1cf53dc1557
--- /dev/null
+++ b/srcpkgs/google-chrome-unstable/update
@@ -0,0 +1,7 @@
+# This site is an official source of version numbers, but it is not
+# obviously associated as such.  We save bytes here and request the
+# CSV, and then only the row containing the stable version number for
+# the Linux desktop build.  As a result the regex can be pretty simple
+# to just grab the version number out of the correct column.
+site="https://omahaproxy.appspot.com/all?os=linux&channel=dev"
+pattern="dev,\K[\d.]+(?=,)"

             reply	other threads:[~2019-12-27 21:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-27 21:50 voidlinux-github [this message]
2019-12-27 22:10 ` New package: google-chrome-unstable voidlinux-github
2019-12-27 23:29 ` voidlinux-github
2019-12-29  3:35 ` voidlinux-github
2019-12-29  3:35 ` [PR PATCH] [Closed]: " voidlinux-github

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-17824@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).