Github messages for voidlinux
 help / color / mirror / Atom feed
From: Web-44 <Web-44@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: discord-canary-0.0.135
Date: Sat, 28 May 2022 18:53:20 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37331@inbox.vuxu.org> (raw)

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

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

https://github.com/Web-44/void-packages discord-canary
https://github.com/void-linux/void-packages/pull/37331

New package: discord-canary-0.0.135
New package: discord-canary-0.0.135

<!-- 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 [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-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-glibc
<!-- 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/37331.patch is attached

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

From 028cb316880de6880714c07435b1d63c24604fe7 Mon Sep 17 00:00:00 2001
From: Webbiii <webbiii@webbiii.cc>
Date: Sat, 28 May 2022 18:42:49 +0200
Subject: [PATCH] New package: discord-canary-0.0.135

New package: discord-canary-0.0.135
---
 .../patches/discord-canary.desktop.patch      |  7 ++++
 srcpkgs/discord-canary/template               | 34 +++++++++++++++++++
 srcpkgs/discord-canary/update                 |  3 ++
 3 files changed, 44 insertions(+)
 create mode 100644 srcpkgs/discord-canary/patches/discord-canary.desktop.patch
 create mode 100644 srcpkgs/discord-canary/template
 create mode 100644 srcpkgs/discord-canary/update

diff --git a/srcpkgs/discord-canary/patches/discord-canary.desktop.patch b/srcpkgs/discord-canary/patches/discord-canary.desktop.patch
new file mode 100644
index 000000000000..7344af2b6ac7
--- /dev/null
+++ b/srcpkgs/discord-canary/patches/discord-canary.desktop.patch
@@ -0,0 +1,7 @@
+*** a/discord-canary.desktop
+--- a/discord-canary.desktop
+*************** GenericName=Internet Messenger
+*** 6 ****
+! Exec=/usr/share/discord-canary/DiscordCanary
+--- 6 ----
+! Exec=/usr/lib/discord-canary/DiscordCanary
diff --git a/srcpkgs/discord-canary/template b/srcpkgs/discord-canary/template
new file mode 100644
index 000000000000..e09c787ad8a1
--- /dev/null
+++ b/srcpkgs/discord-canary/template
@@ -0,0 +1,34 @@
+# Template file for 'discord-canary'
+pkgname=discord-canary
+version=0.0.135
+revision=1
+archs="x86_64"
+wrksrc="DiscordCanary"
+hostmakedepends="w3m"
+depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic xdg-utils webrtc-audio-processing"
+short_desc="Chat and VoIP application (canary channel)"
+maintainer="Webbiii <webbiii@webbiii.cc>"
+license="custom:Proprietary"
+homepage="https://discord.com/"
+distfiles="https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz"
+checksum=7661bedc1592d413071d002fe1fb17b8e6d5780241783f93aa7c90cfaf4031a7
+nopie=yes
+restricted=yes
+repository=nonfree
+
+do_install() {
+	local package_location="usr/lib/$pkgname" item
+	vmkdir usr/share/pixmaps
+	vinstall discord.png 644 /usr/share/pixmaps/ discord-canary.png
+	vmkdir usr/share/applications
+	vcopy discord-canary.desktop /usr/share/applications/
+	vmkdir ${package_location}
+	chmod +x DiscordCanary
+	for item in locales resources swiftshader DiscordCanary chrome-sandbox chrome_100_percent.pak\
+	chrome_200_percent.pak icudtl.dat libEGL.so libGLESv2.so libffmpeg.so libvk_swiftshader.so\
+	resources.pak snapshot_blob.bin v8_context_snapshot.bin; do
+		vcopy "${item}" "${package_location}"
+	done
+	vmkdir usr/bin
+	ln -sfr $DESTDIR/${package_location}/DiscordCanary $DESTDIR/usr/bin/discord-canary
+}
diff --git a/srcpkgs/discord-canary/update b/srcpkgs/discord-canary/update
new file mode 100644
index 000000000000..0bbf422c6325
--- /dev/null
+++ b/srcpkgs/discord-canary/update
@@ -0,0 +1,3 @@
+# sample response: {"name": "0.0.11", "pub_date": "2020-08-06T16:59:21"}
+site="https://discordapp.com/api/updates/canary?platform=linux"
+pattern="\"name\":\s*\"\K[\d.]+(?=\")"

             reply	other threads:[~2022-05-28 16:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-28 16:53 Web-44 [this message]
2022-05-28 17:10 ` Chocimier
2022-05-28 17:10 ` [PR PATCH] [Closed]: " Chocimier

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-37331@inbox.vuxu.org \
    --to=web-44@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).