Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
c54b5a2f
Commit
c54b5a2f
authored
Mar 17, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add 64gram
parent
054db7e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
0 deletions
+100
-0
64gram.sh
play.d/64gram.sh
+18
-0
64Gram.sh
repack.d/64Gram.sh
+82
-0
No files found.
play.d/64gram.sh
0 → 100755
View file @
c54b5a2f
#!/bin/sh
PKGNAME
=
64Gram
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"64Gram (unofficial Telegram Desktop)"
TIPS
=
"Run 'epm play 64gram <version>' to install the version of the 64Gram Telegram client."
BRANCH
=
"[0-9]"
VERSION
=
".*
$BRANCH
"
[
-n
"
$2
"
]
&&
[
"
$2
"
!=
"beta"
]
&&
VERSION
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
PKGURL
=
$(
epm tool eget
--list
--latest
https://github.com/TDesktop-x64/tdesktop/releases
"
${
PKGNAME
}
_
${
VERSION
}
_linux.zip"
)
#"
[
-n
"
$PKGURL
"
]
||
fatal
"Can't get package URL"
epm
install
--repack
"
$PKGURL
"
repack.d/64Gram.sh
0 → 100755
View file @
c54b5a2f
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
64Gram
PRODUCTCUR
=
64gram
PKGNAME
=
$(
basename
$0
.sh
)
PRODUCTDIR
=
/opt/
$PRODUCT
.
$(
dirname
$0
)
/common.sh
# installing from tar, so we need fill some fields here
subst
"s|^Group:.*|Group: Networking/Instant messaging|"
$SPEC
subst
"s|^License: unknown
$|
License: GPLv2|"
$SPEC
subst
"s|^URL:.*|URL: https://github.com/TDesktop-x64/tdesktop|"
$SPEC
subst
"s|^Summary:.*|Summary: 64Gram (unofficial Telegram Desktop)|"
$SPEC
# move package to /opt
ROOTDIR
=
$(
basename
$(
find
$BUILDROOT
-mindepth
1
-maxdepth
1
-type
d
)
2>/dev/null
)
if
[
-n
"
$ROOTDIR
"
]
;
then
mkdir
-p
$BUILDROOT
/opt/
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT$PRODUCTDIR
subst
"s|
\"
/
$ROOTDIR
/|
\"
$PRODUCTDIR
/|"
$SPEC
else
mkdir
-p
$BUILDROOT$PRODUCTDIR
/
mv
$BUILDROOT
/
*
$BUILDROOT$PRODUCTDIR
/
subst
"s|^
\"
/|
\"
$PRODUCTDIR
/|"
$SPEC
fi
move_file
$PRODUCTDIR
/Telegram
$PRODUCTDIR
/
$PRODUCT
add_bin_link_command
add_bin_link_command
$PRODUCTCUR
$PRODUCT
# Icons
iconname
=
$PRODUCT
url
=
https://github.com/TDesktop-x64/tdesktop
for
i
in
16 32 48 64 128 256 512
;
do
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
epm tool eget
-O
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$iconname
.png
$url
/raw/master/Telegram/Resources/art/icon
$i
.png
||
continue
pack_file /usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$iconname
.png
done
# away of file conflict
subst
's|/etc/tdesktop/externalupdater|/etc/t64gramp/externalupdater|'
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
# Disable the official Telegram Desktop updater, creating menu entry (desktop file) and settings entries
# See https://github.com/telegramdesktop/tdesktop/issues/25718
mkdir
-p
"
$BUILDROOT
/etc/t64gramp"
# telegram checks with real path to the binary
echo
"
$PRODUCTDIR
/
$PRODUCT
"
>
"
$BUILDROOT
/etc/t64gramp/externalupdater"
pack_file /etc/t64gramp/externalupdater
remove_file
$PRODUCTDIR
/Updater
# fixed above
# Hack against https://bugzilla.altlinux.org/42402
# We can't forbit creating a desktop file, so just hide it
#subst "s|Terminal=false|NoDisplay=true|" $BUILDROOT$PRODUCTDIR/Telegram
# TODO: tg.protocol
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=telegram-desktop-bin
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=64Gram (unofficial Telegram Desktop)
Exec=
$PRODUCTCUR
-- %u
Icon=
$iconname
StartupWMClass=TelegramDesktop
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
X-GNOME-UsesNotifications=true
EOF
pack_file /usr/share/applications/
$PRODUCT
.desktop
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment