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
61e9e79c
Commit
61e9e79c
authored
Mar 25, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play 64Gram: move packing to pack.d
parent
016d9e80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
17 deletions
+33
-17
64Gram.sh
pack.d/64Gram.sh
+30
-0
64gram.sh
play.d/64gram.sh
+1
-1
64Gram.sh
repack.d/64Gram.sh
+2
-16
No files found.
pack.d/64Gram.sh
0 → 100755
View file @
61e9e79c
#!/bin/sh
TAR
=
"
$1
"
#VERSION="$2"
RETURNTARNAME
=
"
$2
"
PRODUCT
=
"
$(
basename
$0
.sh
)
"
FPRODUCT
=
"Telegram"
.
$(
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
.zip |
sed
-e
"s|_linux||"
)
"
f
=
$FPRODUCT
[
-f
"
$(
echo
*
/
$FPRODUCT
)
"
]
&&
f
=
"
$(
echo
*
/
$FPRODUCT
)
"
mkdir
-p
opt/
$PRODUCT
||
fatal
cp
$f
opt/
$PRODUCT
/
$PRODUCT
||
fatal
erc pack
$CURDIR
/
$PKGNAME
.tar opt/
$PRODUCT
return_tar
$PKGNAME
.tar
play.d/64gram.sh
View file @
61e9e79c
...
...
@@ -15,4 +15,4 @@ VERSION=".*$BRANCH"
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
"
epm
--install
pack
$PKGNAME
"
$PKGURL
"
repack.d/64Gram.sh
View file @
61e9e79c
...
...
@@ -17,21 +17,6 @@ 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
pack_dir
$PRODUCTDIR
move_file
$PRODUCTDIR
/Telegram
$PRODUCTDIR
/
$PRODUCT
add_bin_link_command
add_bin_link_command
$PRODUCTCUR
$PRODUCT
...
...
@@ -53,8 +38,9 @@ subst 's|/etc/tdesktop/externalupdater|/etc/t64gramp/externalupdater|' $BUILDROO
mkdir
-p
"
$BUILDROOT
/etc/t64gramp"
# telegram checks with real path to the binary
echo
"
$PRODUCTDIR
/
$PRODUCT
"
>
"
$BUILDROOT
/etc/t64gramp/externalupdater"
pack_dir /etc/t64gramp
pack_file /etc/t64gramp/externalupdater
remove_file
$PRODUCTDIR
/Updater
#
remove_file $PRODUCTDIR/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