mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
main/telegram-desktop: new port
This commit is contained in:
2
main/telegram-desktop/.checksums
Normal file
2
main/telegram-desktop/.checksums
Normal file
@@ -0,0 +1,2 @@
|
||||
74df2ebf438813bb6e9e94dee78aa677 fix-webview-extern-C-linkage.patch
|
||||
0ad1a954d3cfecc15ab21ff0d076be74 tdesktop-2.8.11-full.tar.gz
|
||||
32
main/telegram-desktop/.pkgfiles
Normal file
32
main/telegram-desktop/.pkgfiles
Normal file
@@ -0,0 +1,32 @@
|
||||
telegram-desktop-2.8.11-1
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/telegram-desktop
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/applications/
|
||||
-rw-r--r-- root/root usr/share/applications/telegramdesktop.desktop
|
||||
drwxr-xr-x root/root usr/share/icons/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/128x128/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/128x128/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/128x128/apps/telegram.png
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/16x16/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/16x16/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/16x16/apps/telegram.png
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/256x256/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/256x256/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/256x256/apps/telegram.png
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/32x32/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/32x32/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/32x32/apps/telegram.png
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/48x48/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/48x48/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/48x48/apps/telegram.png
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/512x512/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/512x512/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/512x512/apps/telegram.png
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/64x64/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/64x64/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/64x64/apps/telegram.png
|
||||
drwxr-xr-x root/root usr/share/metainfo/
|
||||
-rw-r--r-- root/root usr/share/metainfo/telegramdesktop.appdata.xml
|
||||
33
main/telegram-desktop/spkgbuild
Normal file
33
main/telegram-desktop/spkgbuild
Normal file
@@ -0,0 +1,33 @@
|
||||
# description : Official Telegram Desktop client
|
||||
# homepage : https://desktop.telegram.org
|
||||
# depends : minizip jemalloc openal range-v3 tg_owt qt5 rnnoise webkitgtk
|
||||
|
||||
name=telegram-desktop
|
||||
version=2.8.11
|
||||
release=1
|
||||
source="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz
|
||||
fix-webview-extern-C-linkage.patch::https://patch-diff.githubusercontent.com/raw/desktop-app/lib_webview/pull/9.patch"
|
||||
|
||||
build() {
|
||||
cd tdesktop-$version-full
|
||||
|
||||
echo "target_link_libraries(external_webrtc INTERFACE jpeg)" | tee -a cmake/external/webrtc/CMakeLists.txt
|
||||
echo "find_package(X11 REQUIRED COMPONENTS Xcomposite Xdamage Xext Xfixes Xrender Xrandr Xtst)" | tee -a cmake/external/webrtc/CMakeLists.txt
|
||||
echo "target_link_libraries(external_webrtc INTERFACE Xcomposite Xdamage Xext Xfixes Xrandr Xrender Xtst)" | tee -a cmake/external/webrtc/CMakeLists.txt
|
||||
|
||||
patch -b -d Telegram/lib_webview/ -Np1 -i $SRC/fix-webview-extern-C-linkage.patch
|
||||
|
||||
cmake . \
|
||||
-B build \
|
||||
-G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX="/usr" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DTDESKTOP_API_ID=611335 \
|
||||
-DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
|
||||
-DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \
|
||||
-DDESKTOP_APP_SPECIAL_TARGET="" \
|
||||
-DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION="true" \
|
||||
-DDESKTOP_APP_DISABLE_SPELLCHECK="true"
|
||||
ninja -C build
|
||||
DESTDIR=$PKG ninja -C build install
|
||||
}
|
||||
Reference in New Issue
Block a user