Github messages for voidlinux
 help / color / mirror / Atom feed
From: hervyqa <hervyqa@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] zulip-desktop: update to 5.10.0
Date: Tue, 25 Jul 2023 13:16:50 +0200	[thread overview]
Message-ID: <20230725111650.x3w-kdtILI_WlVJE8O2o48HQGjeSnXQ6feN80Pf6npo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45242@inbox.vuxu.org>

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

There is an updated pull request by hervyqa against master on the void-packages repository

https://github.com/hervyqa/void-packages zulip-desktop
https://github.com/void-linux/void-packages/pull/45242

zulip-desktop: update to 5.10.0
<!-- 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**|**NO**
-->

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

![Screenshot_20230725_162512](https://github.com/void-linux/void-packages/assets/45872139/562b86f7-97ab-45db-86dd-c62e1423b0f5)


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

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

From 39a4337ec0ba85ff3056cf939f04f007fa1c4653 Mon Sep 17 00:00:00 2001
From: Hervy Qurrotul Ainur Rozi <hervyqa@proton.me>
Date: Tue, 25 Jul 2023 15:30:23 +0700
Subject: [PATCH] zulip-desktop: update to 5.10.0

---
 srcpkgs/zulip-desktop/files/zulip.desktop |  8 ++++
 srcpkgs/zulip-desktop/template            | 48 ++++++++++++++++++-----
 2 files changed, 47 insertions(+), 9 deletions(-)
 create mode 100644 srcpkgs/zulip-desktop/files/zulip.desktop

diff --git a/srcpkgs/zulip-desktop/files/zulip.desktop b/srcpkgs/zulip-desktop/files/zulip.desktop
new file mode 100644
index 0000000000000..72f45a6bea23c
--- /dev/null
+++ b/srcpkgs/zulip-desktop/files/zulip.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=Zulip
+Comment=Open-source team chat with topic-based threading
+Exec=zulip
+Icon=zulip
+Categories=Network;InstantMessaging;
+StartupWMClass=Zulip
diff --git a/srcpkgs/zulip-desktop/template b/srcpkgs/zulip-desktop/template
index 0a7cff02033f9..2572656d600ed 100644
--- a/srcpkgs/zulip-desktop/template
+++ b/srcpkgs/zulip-desktop/template
@@ -1,14 +1,44 @@
 # Template file for 'zulip-desktop'
 pkgname=zulip-desktop
-version=0.5.1
-revision=2
-build_style=cmake
-configure_args="-DBUILD_WITH_QT5=On"
-hostmakedepends="qt5-host-tools qt5-qmake"
-makedepends="qt5-webkit-devel phonon-qt5-devel qt5-svg-devel qt5-multimedia-devel"
+version=5.10.0
+revision=1
+_electronver=24.3.0
+_npmver=9.5.1
+hostmakedepends="nodejs python3"
+makedepends="GConf-devel electron24 libxkbfile-devel libXtst-devel"
+depends="electron24 gtk+3 nss"
 short_desc="Workplace chat that improves your productivity"
 maintainer="Luca - <luca.andrea.fuse@gmx.com>"
 license="Apache-2.0"
-homepage="https://www.zulip.org/"
-distfiles="https://github.com/zulip/zulip-desktop-legacy/archive/${version}.tar.gz"
-checksum=2475e5298b7df29c7ee8585da7189f4af8dda279e5e1d6e26c8f3fa08ce31ae5
+homepage="https://www.zulip.com"
+distfiles="https://github.com/zulip/zulip-desktop/archive/refs/tags/v${version}.tar.gz"
+checksum=03dde91bc8f8e8d750dcc0a240f0efda65578fb7d99ced0a04a47ec88bbc1f2e
+
+do_configure() {
+	cd "$wrksrc"
+	npm ci
+}
+
+do_build() {
+	npm install -g npm@${_npmver}
+	npm run pack
+
+	/usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp install \
+	--target=$_electronver \
+	--tarball=/usr/include/electron${_electronver%%.*}/node_headers.tar.gz
+}
+
+do_install() {
+	cat > zulip <<-EOF
+	#!/bin/sh
+	exec electron${_electronver%%.*} /usr/lib/zulip-desktop/app.asar "\$@"
+	EOF
+	vbin zulip
+
+	vinstall "dist/linux-unpacked/resources/app.asar" 644 /usr/lib/zulip-desktop
+	vinstall ${FILESDIR}/zulip.desktop 0644 usr/share/applications
+
+	for i in 16 24 32 48 64 128 256 512 1024 ; do
+		vinstall build/icons/${i}x${i}.png 644 usr/share/icons/hicolor/${i}x${i}/apps zulip.png
+	done
+}

  reply	other threads:[~2023-07-25 11:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-25  9:26 [PR PATCH] " hervyqa
2023-07-25 11:16 ` hervyqa [this message]
2023-07-25 17:47 ` [PR REVIEW] " classabbyamp
2023-07-25 17:48 ` classabbyamp
2023-07-26  1:04 ` hervyqa
2023-07-26  1:08 ` [PR PATCH] [Updated] " hervyqa
2023-07-26  1:13 ` [PR REVIEW] " hervyqa
2023-08-04 12:02 ` hervyqa
2023-08-04 12:02 ` hervyqa
2023-09-16  3:45 ` [PR REVIEW] " selfisekai
2023-09-28  0:43 ` [PR PATCH] [Updated] " hervyqa
2023-09-30 14:54 ` [PR PATCH] [Updated] zulip-desktop: update to 5.10.2 hervyqa
2023-12-30  1:45 ` zulip-desktop: update to 5.10.3 github-actions
2024-01-13  1:46 ` [PR PATCH] [Closed]: " github-actions
2024-05-17 19:45 ` dkwo
2024-05-19  9:54 ` hervyqa
2024-05-20 21:00 ` dkwo

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=20230725111650.x3w-kdtILI_WlVJE8O2o48HQGjeSnXQ6feN80Pf6npo@z \
    --to=hervyqa@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).