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
016d9e80
Commit
016d9e80
authored
Mar 25, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play telegram: move repacking to pack.d
parent
29b362df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
13 deletions
+35
-13
Telegram-beta.sh
pack.d/Telegram-beta.sh
+2
-0
Telegram.sh
pack.d/Telegram.sh
+30
-0
telegram.sh
play.d/telegram.sh
+1
-5
Telegram.sh
repack.d/Telegram.sh
+2
-8
No files found.
pack.d/Telegram-beta.sh
0 → 120000
View file @
016d9e80
Telegram.sh
\ No newline at end of file
pack.d/Telegram.sh
0 → 100755
View file @
016d9e80
#!/bin/sh
TAR
=
"
$1
"
#VERSION="$2"
RETURNTARNAME
=
"
$2
"
PRODUCT
=
"
$(
basename
$0
.sh
)
"
.
$(
dirname
$0
)
/common.sh
CURDIR
=
"
$(
pwd
)
"
PKGDIR
=
"
$(
mktemp
-d
)
"
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
erc
$TAR
||
fatal
# use version from tarball
# (TODO: get basename via erc
PKGNAME
=
"
$(
basename
$TAR
.tar.xz |
sed
-e
"s|^tsetup|
$PRODUCT
|"
)
"
#PKGNAME="$(basename $PKGNAME .zip | )"
f
=
$PRODUCT
[
-f
"
$PRODUCT
/
$PRODUCT
"
]
&&
f
=
"
$PRODUCT
/
$PRODUCT
"
mkdir
-p
opt/
$PRODUCT
||
fatal
cp
$f
opt/
$PRODUCT
||
fatal
erc pack
$CURDIR
/
$PKGNAME
.tar opt/
$PRODUCT
return_tar
$PKGNAME
.tar
play.d/telegram.sh
View file @
016d9e80
...
...
@@ -20,9 +20,5 @@ VERSION=".*$BRANCH"
PKGURL
=
$(
epm tool eget
--list
--latest
https://github.com/telegramdesktop/tdesktop/releases
"tsetup.
$VERSION
.tar.xz"
)
#"
[
-n
"
$PKGURL
"
]
||
fatal
"Can't get package URL"
PKGDIR
=
$(
mktemp
-d
)
trap
"rm -fr
$PKGDIR
"
EXIT
PKGFILE
=
$(
echo
$PKGDIR
/
$(
basename
$PKGURL
)
|
sed
-e
"s|/tsetup|/
$PKGNAME
|"
)
epm tool eget
-O
$PKGFILE
$PKGURL
||
exit
epm
install
--repack
"
$PKGFILE
"
epm
--install
pack
$PKGNAME
"
$PKGURL
"
repack.d/Telegram.sh
View file @
016d9e80
...
...
@@ -26,13 +26,6 @@ subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst
"s|^URL:.*|URL: https://desktop.telegram.org/|"
$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
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT$PRODUCTDIR
subst
"s|
\"
/
$ROOTDIR
/|
\"
$PRODUCTDIR
/|"
$SPEC
add_bin_link_command
add_bin_link_command
$PRODUCTCUR
$PRODUCT
...
...
@@ -51,8 +44,9 @@ done
mkdir
-p
"
$BUILDROOT
/etc/tdesktop"
# telegram checks with real path to the binary
echo
"
$PRODUCTDIR
/
$PRODUCT
"
>
"
$BUILDROOT
/etc/tdesktop/externalupdater"
pack_dir /etc/tdesktop
pack_file /etc/tdesktop/externalupdater
remove_file /opt/Telegram/Updater
#
remove_file /opt/Telegram/Updater
# fixed above
# Hack against https://bugzilla.altlinux.org/42402
...
...
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