- migrated to Exherbo
- added a few initial Pantheon components
This commit is contained in:
parent
cb6360a7e8
commit
2d2bbbc830
85 changed files with 931 additions and 2 deletions
60
packages/net-im/telegram-desktop-bin/files/fonts.conf
Normal file
60
packages/net-im/telegram-desktop-bin/files/fonts.conf
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?xml version='1.0'?>
|
||||
<!--
|
||||
This file is only here to work around
|
||||
https://github.com/telegramdesktop/tdesktop/issues/4240
|
||||
It has been taken from (with slight modification)
|
||||
https://github.com/telegramdesktop/tdesktop/issues/4493
|
||||
-->
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<dir>/usr/share/fonts</dir>
|
||||
<dir>/usr/local/share/fonts</dir>
|
||||
<dir prefix="xdg">fonts</dir>
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>mono</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>monospace</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>sans serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>sans-serif</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family">
|
||||
<string>sans</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign" binding="same">
|
||||
<string>sans-serif</string>
|
||||
</edit>
|
||||
</match>
|
||||
<cachedir>/var/cache/fontconfig</cachedir>
|
||||
<cachedir prefix="xdg">fontconfig</cachedir>
|
||||
<cachedir>~/.fontconfig</cachedir>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="antialias">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="embeddedbitmap">
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="hinting">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit mode="assign" name="hintstyle">
|
||||
<const>hintslight</const>
|
||||
</edit>
|
||||
<edit mode="assign" name="lcdfilter">
|
||||
<const>lcddefault</const>
|
||||
</edit>
|
||||
<edit mode="assign" name="rgba">
|
||||
<const>rgb</const>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
15
packages/net-im/telegram-desktop-bin/files/telegram-desktop
Normal file
15
packages/net-im/telegram-desktop-bin/files/telegram-desktop
Normal file
|
@ -0,0 +1,15 @@
|
|||
#! /bin/sh
|
||||
# this wrapper disables the auto-updater of telegram-desktop
|
||||
# This program is licensed under the same license as telegram-desktop
|
||||
|
||||
# telegram-desktop fails to set RestartCommand with the session manager
|
||||
# exclude it from session management to prevent restarts without the argument
|
||||
unset SESSION_MANAGER
|
||||
|
||||
# telegram-desktop expects old fontconfig configuration files
|
||||
# this is a workaround to try and deal with that
|
||||
[ -e /etc/telegram-desktop-bin/fonts.conf ] && \
|
||||
[ -z $( printenv FONTCONFIG_FILE ) ] && \
|
||||
export FONTCONFIG_FILE=/etc/telegram-desktop-bin/fonts.conf
|
||||
|
||||
exec /usr/libexec/telegram-desktop-bin/Telegram -externalupdater $@
|
|
@ -0,0 +1,3 @@
|
|||
require telegram-desktop-bin
|
||||
|
||||
PLATFORMS="-* ~x86 ~amd64"
|
|
@ -0,0 +1,70 @@
|
|||
# Copyright 2018 Martin Sekera <sekerama@gmail.com>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Based on Gentoo's net-im/telegram-desktop-bin, GPL2
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
|
||||
SUMMARY="Telegram Desktop messaging app (binary)"
|
||||
DESCRIPTION="Telegram is a messaging app with a focus on speed and security, it’s super-fast, simple and free. You can use Telegram on all your devices at the same time — your messages sync seamlessly across any number of your phones, tablets or computers."
|
||||
HOMEPAGE="https://desktop.telegram.org/"
|
||||
DOWNLOADS="
|
||||
https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz
|
||||
platform:amd64? ( https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/tsetup.${PV}.beta.tar.xz )
|
||||
platform:x86? ( https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/tsetup32.${PV}.beta.tar.xz )
|
||||
"
|
||||
UPSTREAM_CHANGELOG="https://telegram.org/blog [[ lang = en ]]"
|
||||
UPSTREAM_DOCUMENTATION="
|
||||
https://telegram.org/faq [[ lang = en description = [ FAQ ] ]]
|
||||
https://core.telegram.org/techfaq [[ lang = en description = [ Technical FAQ ] ]]
|
||||
https://core.telegram.org/api [[ lang = en description = [ API description ] ]]
|
||||
"
|
||||
|
||||
LICENCES="GPL-3-with-openssl-exception"
|
||||
SLOT="0"
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
dev-libs/glib:2
|
||||
gnome-desktop/gobject-introspection
|
||||
sys-apps/dbus
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
media-libs/fontconfig
|
||||
"
|
||||
MYOPTIONS="
|
||||
platform:
|
||||
amd64
|
||||
x86
|
||||
"
|
||||
RESTRICT="test" # no tests available
|
||||
|
||||
WORK="${WORKBASE}"
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/$(exhost --target)/libexec/${PN}
|
||||
doexe Telegram/Telegram
|
||||
|
||||
newbin "${FILES}"/telegram-desktop telegram-desktop
|
||||
|
||||
for size in 16 32 48 64 128 256 512
|
||||
do
|
||||
insinto /usr/share/icons/hicolor/${size}x${size}/apps
|
||||
newins "${WORK}/tdesktop-${PV}/Telegram/Resources/art/icon${size}.png" telegram.png
|
||||
done
|
||||
|
||||
dodir /etc/${PN}
|
||||
insinto /etc/${PN}
|
||||
doins "${FILES}"/fonts.conf
|
||||
|
||||
insinto /usr/share/applications
|
||||
doins "${WORK}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
freedesktop-desktop_pkg_postrm
|
||||
gtk-icon-cache_pkg_postrm
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
freedesktop-desktop_pkg_postinst
|
||||
gtk-icon-cache_pkg_postinst
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue