Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
@ 2023-09-25 14:37 incycledream
  2023-09-25 15:39 ` ahesford
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: incycledream @ 2023-09-25 14:37 UTC (permalink / raw)
  To: ml

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

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

https://github.com/incycledream/void-packages master
https://github.com/void-linux/void-packages/pull/46248

New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
<!-- 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, (ARCH-LIBC)


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

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

From 323e54021b7a07a24a214aad7ce7f97527fa7eee Mon Sep 17 00:00:00 2001
From: westpain <homicide@disroot.org>
Date: Mon, 25 Sep 2023 17:24:00 +0300
Subject: [PATCH 1/2] New package: ayugram-desktop-4.9.4

---
 .../patches/0001-use-vendored-gsl.patch       | 11 +++++
 srcpkgs/ayugram-desktop/template              | 47 +++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/ayugram-desktop/patches/0001-use-vendored-gsl.patch
 create mode 100644 srcpkgs/ayugram-desktop/template

diff --git a/srcpkgs/ayugram-desktop/patches/0001-use-vendored-gsl.patch b/srcpkgs/ayugram-desktop/patches/0001-use-vendored-gsl.patch
new file mode 100644
index 0000000000000..debe5a1cd1fdc
--- /dev/null
+++ b/srcpkgs/ayugram-desktop/patches/0001-use-vendored-gsl.patch
@@ -0,0 +1,11 @@
+--- a/cmake/external/gsl/CMakeLists.txt	2021-03-17 10:33:50.000000000 +0100
++++ b/cmake/external/gsl/CMakeLists.txt	2021-03-17 10:33:50.000000000 +0100
+@@ -8,7 +8,7 @@
+ add_library(desktop-app::external_gsl ALIAS external_gsl)
+ 
+ if (DESKTOP_APP_USE_PACKAGED)
+-    if (DESKTOP_APP_USE_PACKAGED_LAZY)
++    if (TRUE)
+         find_package(Microsoft.GSL 4.0.0 QUIET)
+     else()
+         find_package(Microsoft.GSL 4.0.0)
diff --git a/srcpkgs/ayugram-desktop/template b/srcpkgs/ayugram-desktop/template
new file mode 100644
index 0000000000000..f1bd3942059f0
--- /dev/null
+++ b/srcpkgs/ayugram-desktop/template
@@ -0,0 +1,47 @@
+# Template file for 'ayugram-desktop'
+pkgname=ayugram-desktop
+version=4.9.4
+revision=1
+build_style=cmake
+build_helper="qemu gir"
+configure_args="-DTDESKTOP_API_ID=209235
+ -DTDESKTOP_API_HASH=169ee702e1df4b6e66d80311db36cc43
+ -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
+ -DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')
+ -DDESKTOP_APP_USE_PACKAGED_FONTS=ON
+ -DWaylandScanner_EXECUTABLE=/usr/bin/wayland-scanner
+ -DQT_HOST_PATH=/usr"
+hostmakedepends="pkg-config qt6-base python3 extra-cmake-modules
+ qt6-wayland-tools wayland-devel protobuf git"
+makedepends="alsa-lib-devel boost-devel fmt-devel ffmpeg-devel gobject-introspection libdbusmenu-glib-devel libopenal-devel
+ minizip-devel opus-devel xxHash-devel pulseaudio-devel range-v3
+ qt6-svg-devel libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
+ MesaLib-devel qt6-wayland-devel qt6-qt5compat-devel
+ xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel) protobuf-devel
+ glibmm2.68-devel tg_owt webkit2gtk-devel rnnoise-devel jemalloc-devel qt6-declarative-devel"
+depends="qt6-imageformats ttf-opensans glib"
+short_desc="Unofficial Telegram Desktop with ToS breaking features"
+maintainer="westpain <homicide@disroot.org>"
+license="GPL-3.0-or-later, OpenSSL"
+homepage="https://github.com/AyuGram/AyuGramDesktop.git"
+
+build_options="spellcheck"
+build_options_default="spellcheck"
+
+
+do_fetch() {
+    git clone --recursive https://github.com/AyuGram/AyuGramDesktop.git ${wrksrc}
+}
+
+
+case $XBPS_TARGET_MACHINE in
+	mips*) broken="unsupported";;
+esac
+
+if [ "$XBPS_WORDSIZE" -eq 32 ]; then
+	nodebug=yes
+fi
+
+if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
+	broken="UI doesn't go beyond initial screen, also LE specific code in networking"
+fi

From 20c3b3fcf2700e95736dfdf52e9a24bba3a7a140 Mon Sep 17 00:00:00 2001
From: westpain <homicide@disroot.org>
Date: Mon, 25 Sep 2023 17:25:52 +0300
Subject: [PATCH 2/2] New package: ayugram-desktop-sysfont-4.9.4

---
 .../patches/0001-use-vendored-gsl.patch       | 11 +++++
 .../patches/sysfont.patch                     | 11 +++++
 srcpkgs/ayugram-desktop-sysfont/template      | 47 +++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/ayugram-desktop-sysfont/patches/0001-use-vendored-gsl.patch
 create mode 100644 srcpkgs/ayugram-desktop-sysfont/patches/sysfont.patch
 create mode 100644 srcpkgs/ayugram-desktop-sysfont/template

diff --git a/srcpkgs/ayugram-desktop-sysfont/patches/0001-use-vendored-gsl.patch b/srcpkgs/ayugram-desktop-sysfont/patches/0001-use-vendored-gsl.patch
new file mode 100644
index 0000000000000..debe5a1cd1fdc
--- /dev/null
+++ b/srcpkgs/ayugram-desktop-sysfont/patches/0001-use-vendored-gsl.patch
@@ -0,0 +1,11 @@
+--- a/cmake/external/gsl/CMakeLists.txt	2021-03-17 10:33:50.000000000 +0100
++++ b/cmake/external/gsl/CMakeLists.txt	2021-03-17 10:33:50.000000000 +0100
+@@ -8,7 +8,7 @@
+ add_library(desktop-app::external_gsl ALIAS external_gsl)
+ 
+ if (DESKTOP_APP_USE_PACKAGED)
+-    if (DESKTOP_APP_USE_PACKAGED_LAZY)
++    if (TRUE)
+         find_package(Microsoft.GSL 4.0.0 QUIET)
+     else()
+         find_package(Microsoft.GSL 4.0.0)
diff --git a/srcpkgs/ayugram-desktop-sysfont/patches/sysfont.patch b/srcpkgs/ayugram-desktop-sysfont/patches/sysfont.patch
new file mode 100644
index 0000000000000..66e387a80df55
--- /dev/null
+++ b/srcpkgs/ayugram-desktop-sysfont/patches/sysfont.patch
@@ -0,0 +1,11 @@
+--- a/Telegram/lib_ui/ui/style/style_core_font.cpp
++++ b/Telegram/lib_ui/ui/style/style_core_font.cpp
+@@ -253,7 +253,7 @@
+ 
+ QString GetFontOverride(int32 flags) {
+ 	const auto result = GetPossibleEmptyOverride(flags);
+-	return result.isEmpty() ? "Open Sans" : result;
++	return result.isEmpty() ? "sans-serif" : result;
+ }
+ 
+ QString MonospaceFont() {
diff --git a/srcpkgs/ayugram-desktop-sysfont/template b/srcpkgs/ayugram-desktop-sysfont/template
new file mode 100644
index 0000000000000..3eea0f5240b9c
--- /dev/null
+++ b/srcpkgs/ayugram-desktop-sysfont/template
@@ -0,0 +1,47 @@
+# Template file for 'ayugram-desktop-sysfont'
+pkgname=ayugram-desktop-sysfont
+version=4.9.4
+revision=1
+build_style=cmake
+build_helper="qemu gir"
+configure_args="-DTDESKTOP_API_ID=209235
+ -DTDESKTOP_API_HASH=169ee702e1df4b6e66d80311db36cc43
+ -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
+ -DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')
+ -DDESKTOP_APP_USE_PACKAGED_FONTS=ON
+ -DWaylandScanner_EXECUTABLE=/usr/bin/wayland-scanner
+ -DQT_HOST_PATH=/usr"
+hostmakedepends="pkg-config qt6-base python3 extra-cmake-modules
+ qt6-wayland-tools wayland-devel protobuf git"
+makedepends="alsa-lib-devel boost-devel fmt-devel ffmpeg-devel gobject-introspection libdbusmenu-glib-devel libopenal-devel
+ minizip-devel opus-devel xxHash-devel pulseaudio-devel range-v3
+ qt6-svg-devel libva-devel rapidjson liblz4-devel liblzma-devel gtk+3-devel
+ MesaLib-devel qt6-wayland-devel qt6-qt5compat-devel
+ xcb-util-keysyms-devel $(vopt_if spellcheck hunspell-devel) protobuf-devel
+ glibmm2.68-devel tg_owt webkit2gtk-devel rnnoise-devel jemalloc-devel qt6-declarative-devel"
+depends="qt6-imageformats ttf-opensans glib"
+short_desc="Unofficial Telegram Desktop with ToS breaking features"
+maintainer="westpain <homicide@disroot.org>"
+license="GPL-3.0-or-later, OpenSSL"
+homepage="https://github.com/AyuGram/AyuGramDesktop.git"
+
+build_options="spellcheck"
+build_options_default="spellcheck"
+
+
+do_fetch() {
+    git clone --recursive https://github.com/AyuGram/AyuGramDesktop.git ${wrksrc}
+}
+
+
+case $XBPS_TARGET_MACHINE in
+	mips*) broken="unsupported";;
+esac
+
+if [ "$XBPS_WORDSIZE" -eq 32 ]; then
+	nodebug=yes
+fi
+
+if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
+	broken="UI doesn't go beyond initial screen, also LE specific code in networking"
+fi

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

* Re: New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
  2023-09-25 14:37 [PR PATCH] New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4 incycledream
@ 2023-09-25 15:39 ` ahesford
  2023-09-25 15:47 ` incycledream
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ahesford @ 2023-09-25 15:39 UTC (permalink / raw)
  To: ml

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

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/46248#issuecomment-1733976837

Comment:
Packages that just clone a git repository in `do_fetch` are not acceptable. A GitHub archive should be fetched properly.

The `ayugram-desktop` and `ayugram-desktop-sysfont` templates seem identical, at least as far as I can tell paging back and forth. What is the difference between them? 

Use of `broken=` to disable unsupported archs is not appropriate. The `archs` variable should be used for proper architecture restrictions.

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

* Re: New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
  2023-09-25 14:37 [PR PATCH] New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4 incycledream
  2023-09-25 15:39 ` ahesford
@ 2023-09-25 15:47 ` incycledream
  2023-09-25 15:48 ` ahesford
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: incycledream @ 2023-09-25 15:47 UTC (permalink / raw)
  To: ml

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

New comment by incycledream on void-packages repository

https://github.com/void-linux/void-packages/pull/46248#issuecomment-1734011687

Comment:
okay, I'll fix the mistakes. I used official telegram desktop template and I thought everything is okay
also, I forgot to specify that CI will take more than 2 hours due having two commits with different versions

about packages, version with sysfont ending is having system font. you can see by checking patches directory
```
void-packages/srcpkgs/ayugram-desktop/patches:
total 4.0K
   0 drwxr-xr-x 1 westpain westpain  54 Sep 25 17:16 .
   0 drwxr-xr-x 1 westpain westpain  30 Sep 25 17:16 ..
4.0K -rw-r--r-- 1 westpain westpain 419 Sep 25 17:16 0001-use-vendored-gsl.patch

void-packages/srcpkgs/ayugram-desktop-sysfont/patches:
total 8.0K
   0 drwxr-xr-x 1 westpain westpain  80 Sep 25 17:16 .
   0 drwxr-xr-x 1 westpain westpain  30 Sep 25 17:16 ..
4.0K -rw-r--r-- 1 westpain westpain 419 Sep 25 17:16 0001-use-vendored-gsl.patch
4.0K -rw-r--r-- 1 westpain westpain 352 Sep 25 17:16 sysfont.patch
```

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

* Re: New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
  2023-09-25 14:37 [PR PATCH] New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4 incycledream
  2023-09-25 15:39 ` ahesford
  2023-09-25 15:47 ` incycledream
@ 2023-09-25 15:48 ` ahesford
  2023-09-25 16:02 ` Johnnynator
  2023-09-25 16:02 ` [PR PATCH] [Closed]: " Johnnynator
  4 siblings, 0 replies; 6+ messages in thread
From: ahesford @ 2023-09-25 15:48 UTC (permalink / raw)
  To: ml

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

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/46248#issuecomment-1734016924

Comment:
Two packages that are the same except for a one-line patch to change the font are not acceptable.

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

* Re: New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
  2023-09-25 14:37 [PR PATCH] New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4 incycledream
                   ` (2 preceding siblings ...)
  2023-09-25 15:48 ` ahesford
@ 2023-09-25 16:02 ` Johnnynator
  2023-09-25 16:02 ` [PR PATCH] [Closed]: " Johnnynator
  4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2023-09-25 16:02 UTC (permalink / raw)
  To: ml

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

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/pull/46248#issuecomment-1734043281

Comment:
https://core.telegram.org/api/terms
> 1.4. It is forbidden to interfere with the basic functionality of Telegram. This includes but is not limited to: making actions on behalf of the user without the user's knowledge and consent, preventing self-destructing content from disappearing, preventing last seen and online statuses from being displayed correctly, tampering with the 'read' statuses of messages (e.g. implementing a 'ghost mode'), preventing typing statuses from being sent/displayed, etc. 

The API Access and therefore the used API Key hast to follow the API Terms of Use. Void has some basic responsibility to not ship software to users with the sole intention of breaking the TOU of a single Service.

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

* Re: [PR PATCH] [Closed]: New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
  2023-09-25 14:37 [PR PATCH] New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4 incycledream
                   ` (3 preceding siblings ...)
  2023-09-25 16:02 ` Johnnynator
@ 2023-09-25 16:02 ` Johnnynator
  4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2023-09-25 16:02 UTC (permalink / raw)
  To: ml

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

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

New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4
https://github.com/void-linux/void-packages/pull/46248

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


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

end of thread, other threads:[~2023-09-25 16:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 14:37 [PR PATCH] New packages: ayugram-desktop-4.9.4, ayugram-desktop-sysfont-4.9.4 incycledream
2023-09-25 15:39 ` ahesford
2023-09-25 15:47 ` incycledream
2023-09-25 15:48 ` ahesford
2023-09-25 16:02 ` Johnnynator
2023-09-25 16:02 ` [PR PATCH] [Closed]: " Johnnynator

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