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

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