From 323e54021b7a07a24a214aad7ce7f97527fa7eee Mon Sep 17 00:00:00 2001 From: westpain 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 " +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 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 " +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