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
Nurlan
eepm
Commits
e42d63ae
Commit
e42d63ae
authored
3 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup Telegram receipts
parent
b9e0ce4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
telegram.sh
prescription.d/telegram.sh
+1
-5
Telegram.sh
repack.d/Telegram.sh
+4
-3
No files found.
prescription.d/telegram.sh
View file @
e42d63ae
...
@@ -19,11 +19,7 @@ fi
...
@@ -19,11 +19,7 @@ fi
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
PKGURL
=
$(
$EGET
--list
--latest
https://github.com/telegramdesktop/tdesktop/releases
"tsetup.*.tar.xz"
)
PKGURL
=
$(
$EGET
--list
--latest
https://github.com/telegramdesktop/tdesktop/releases
"tsetup.*.tar.xz"
)
# hack: install latest know version if latest release have no binary for linux
# todo: check all releases?
STABLEVERSION
=
2.8.1
[
-n
"
$PKGURL
"
]
||
PKGURL
=
https://github.com/telegramdesktop/tdesktop/releases/download/v
$STABLEVERSION
/tsetup.
$STABLEVERSION
.tar.xz
[
-n
"
$PKGURL
"
]
||
fatal
"Can't get package URL"
[
-n
"
$PKGURL
"
]
||
fatal
"Can't get package URL"
PKGFILE
=
$(
echo
/tmp/
$(
basename
$PKGURL
)
|
sed
-e
"s|/tsetup|/
$PKGNAME
|"
)
PKGFILE
=
$(
echo
/tmp/
$(
basename
$PKGURL
)
|
sed
-e
"s|/tsetup|/
$PKGNAME
|"
)
$EGET
-O
$PKGFILE
$PKGURL
||
exit
$EGET
-O
$PKGFILE
$PKGURL
||
exit
...
...
This diff is collapsed.
Click to expand it.
repack.d/Telegram.sh
View file @
e42d63ae
...
@@ -9,17 +9,18 @@ PRODUCT=Telegram
...
@@ -9,17 +9,18 @@ PRODUCT=Telegram
# /usr/bin/Telegram
# /usr/bin/Telegram
#subst '1iConflicts:telegram-desktop' $SPEC
#subst '1iConflicts:telegram-desktop' $SPEC
# move package to /opt
ROOTDIR
=
$(
basename
$(
find
$BUILDROOT
-mindepth
1
-maxdepth
1
-type
d
))
subst
"s|^License: unknown
$|
License: GPLv2|"
$SPEC
subst
"s|^License: unknown
$|
License: GPLv2|"
$SPEC
subst
"s|^URL:.*|URL: https://desktop.telegram.org/|"
$SPEC
subst
"s|^URL:.*|URL: https://desktop.telegram.org/|"
$SPEC
subst
"s|^Summary:.*|Summary: Telegram Desktop messaging app|"
$SPEC
subst
"s|^Summary:.*|Summary: Telegram Desktop messaging app|"
$SPEC
# move package to /opt
ROOTDIR
=
$(
basename
$(
find
$BUILDROOT
-mindepth
1
-maxdepth
1
-type
d
))
mkdir
$BUILDROOT
/opt
mkdir
$BUILDROOT
/opt
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT
/opt/
$PRODUCT
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT
/opt/
$PRODUCT
subst
"s|
\"
/
$ROOTDIR
/|
\"
/opt/
$PRODUCT
/|"
$SPEC
subst
"s|
\"
/
$ROOTDIR
/|
\"
/opt/
$PRODUCT
/|"
$SPEC
# add binary
in standart
path
# add binary
to the search
path
#mkdir -p $BUILDROOT/usr/bin/
#mkdir -p $BUILDROOT/usr/bin/
#ln -s /opt/$PRODUCT/Telegram $BUILDROOT/usr/bin/$PRODUCT
#ln -s /opt/$PRODUCT/Telegram $BUILDROOT/usr/bin/$PRODUCT
#subst "s|%files|%files\n/usr/bin/$PRODUCT|" $SPEC
#subst "s|%files|%files\n/usr/bin/$PRODUCT|" $SPEC
...
...
This diff is collapsed.
Click to expand it.
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