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
e8608eb4
Commit
e8608eb4
authored
Apr 03, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: refactoring, fix tamtam install, fix sputnik install
parent
f1c7fdb3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
34 deletions
+71
-34
Telegram.sh
repack.d/Telegram.sh
+9
-8
atom-beta.sh
repack.d/atom-beta.sh
+4
-7
common-chromium-browser.sh
repack.d/common-chromium-browser.sh
+43
-6
sferum.sh
repack.d/sferum.sh
+5
-3
sputnik-browser-stable.sh
repack.d/sputnik-browser-stable.sh
+4
-3
tamtam-app.sh
repack.d/tamtam-app.sh
+6
-7
No files found.
repack.d/Telegram.sh
View file @
e8608eb4
...
@@ -5,7 +5,8 @@ BUILDROOT="$1"
...
@@ -5,7 +5,8 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
Telegram
PRODUCT
=
Telegram
PRODUCTOPT
=
telegram-desktop
PRODUCTCUR
=
telegram-desktop
PRODUCTDIR
=
/opt/Telegram
# /usr/bin/Telegram
# /usr/bin/Telegram
subst
'1iConflicts:telegram-desktop < 3.2.8'
$SPEC
subst
'1iConflicts:telegram-desktop < 3.2.8'
$SPEC
...
@@ -18,15 +19,15 @@ subst "s|^Summary:.*|Summary: Telegram Desktop messaging app|" $SPEC
...
@@ -18,15 +19,15 @@ subst "s|^Summary:.*|Summary: Telegram Desktop messaging app|" $SPEC
# move package to /opt
# move package to /opt
ROOTDIR
=
$(
basename
$(
find
$BUILDROOT
-mindepth
1
-maxdepth
1
-type
d
))
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
$PRODUCTDIR
subst
"s|
\"
/
$ROOTDIR
/|
\"
/opt/
$PRODUCT
/|"
$SPEC
subst
"s|
\"
/
$ROOTDIR
/|
\"
$PRODUCTDIR
/|"
$SPEC
# add binary to the search 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
$PRODUCTDIR
/Telegram
$BUILDROOT
/usr/bin/
$PRODUCT
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
ln
-s
/opt/
$PRODUCT
/Telegram
$BUILDROOT
/usr/bin/
$PRODUCTOPT
ln
-s
$PRODUCTDIR
/Telegram
$BUILDROOT
/usr/bin/
$PRODUCTCUR
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
OPT
|"
$SPEC
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
CUR
|"
$SPEC
# create desktop file
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
mkdir
-p
$BUILDROOT
/usr/share/applications/
...
@@ -35,8 +36,8 @@ cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
...
@@ -35,8 +36,8 @@ cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
Version=1.0
Version=1.0
Name=Telegram Desktop
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Comment=Official desktop version of Telegram messaging app
TryExec=
/opt/
$PRODUCT
/Telegram
TryExec=
$PRODUCTDIR
/Telegram
Exec=
/opt/
$PRODUCT
/Telegram -- %u
Exec=
$PRODUCTDIR
/Telegram -- %u
Icon=
$PRODUCT
Icon=
$PRODUCT
Terminal=false
Terminal=false
StartupWMClass=TelegramDesktop
StartupWMClass=TelegramDesktop
...
...
repack.d/atom-beta.sh
View file @
e8608eb4
...
@@ -5,20 +5,17 @@ BUILDROOT="$1"
...
@@ -5,20 +5,17 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
atom
PRODUCT
=
atom
PRODUCTCUR
=
atom-beta
PRODUCTDIR
=
/usr/share/atom-beta
PRODUCTDIR
=
/usr/share/atom-beta
.
$(
dirname
$0
)
/common-chromium-browser.sh
# TODO: /usr/share/atom-beta -> /usr/lib64/atom-beta
# TODO: /usr/share/atom-beta -> /usr/lib64/atom-beta
subst
'1iAutoReq:yes,nomonolib,nomono,nopython'
$SPEC
subst
'1iAutoReq:yes,nomonolib,nomono,nopython'
$SPEC
subst
'1iAutoProv:no'
$SPEC
subst
'1iAutoProv:no'
$SPEC
if
[
!
-f
"
$BUILDROOT
/usr/bin/
$PRODUCT
"
]
;
then
add_bin_exec_command
$PRODUCT
/usr/bin/
$PRODUCTCUR
subst
"s|%files|%files
\n
%_bindir/
$PRODUCT
|"
$SPEC
#ln -s $PRODUCT-beta $BUILDROOT/usr/bin/$PRODUCT
# command name is sensitive
echo
"exec /usr/bin/
$PRODUCT
-beta"
>
$BUILDROOT
/usr/bin/
$PRODUCT
chmod
a+x
$BUILDROOT
/usr/bin/
$PRODUCT
fi
subst
'1iBuildRequires:rpm-build-python3'
$SPEC
subst
'1iBuildRequires:rpm-build-python3'
$SPEC
subst
'1i%add_python3_path /usr/share/atom-beta'
$SPEC
subst
'1i%add_python3_path /usr/share/atom-beta'
$SPEC
...
...
repack.d/common-chromium-browser.sh
View file @
e8608eb4
...
@@ -85,9 +85,48 @@ install_deps()
...
@@ -85,9 +85,48 @@ install_deps()
}
}
pack_file
()
{
grep
-q
"^
$1
$"
$SPEC
&&
return
grep
-q
"
\"
$1
\"
"
$SPEC
&&
return
subst
"s|%files|%files
\n
$1
|"
$SPEC
}
add_bin_link_command
()
{
local
name
=
"
$1
"
local
target
=
"
$2
"
[
-n
"
$name
"
]
||
name
=
"
$PRODUCT
"
[
-n
"
$target
"
]
||
target
=
"
$PRODUCTDIR
/
$name
"
[
-e
$BUILDROOT
/usr/bin/
$name
]
&&
return
mkdir
-p
$BUILDROOT
/usr/bin/
ln
-s
$target
$BUILDROOT
/usr/bin/
$name
pack_file /usr/bin/
$name
}
add_bin_exec_command
()
{
local
name
=
"
$1
"
local
target
=
"
$2
"
[
-n
"
$name
"
]
||
name
=
"
$PRODUCT
"
[
-n
"
$target
"
]
||
target
=
"
$PRODUCTDIR
/
$name
"
[
-e
$BUILDROOT
/usr/bin/
$name
]
&&
return
mkdir
-p
$BUILDROOT
/usr/bin/
echo
"exec
$target
\"\$
@
\"
"
>
$BUILDROOT
/usr/bin/
$name
chmod
0755
$BUILDROOT
/usr/bin/
$name
pack_file /usr/bin/
$name
}
# FIXME: too many heruistic due https://bugzilla.altlinux.org/42189
add_bin_commands
()
add_bin_commands
()
{
{
mkdir
-p
$BUILDROOT
/usr/bin
mkdir
-p
$BUILDROOT
/usr/bin
if
[
-L
$BUILDROOT
/usr/bin/
$PRODUCTCUR
]
;
then
if
[
-L
$BUILDROOT
/usr/bin/
$PRODUCTCUR
]
;
then
rm
-fv
$BUILDROOT
/usr/bin/
$PRODUCTCUR
rm
-fv
$BUILDROOT
/usr/bin/
$PRODUCTCUR
else
else
...
@@ -100,22 +139,20 @@ add_bin_commands()
...
@@ -100,22 +139,20 @@ add_bin_commands()
ln
-rs
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
$BUILDROOT
/usr/bin/
$PRODUCTCUR
ln
-rs
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
$BUILDROOT
/usr/bin/
$PRODUCTCUR
fi
fi
# fix links (may be broken due https://bugzilla.altlinux.org/42189)
# fix links
in $PRODUCTDIR
(may be broken due https://bugzilla.altlinux.org/42189)
if
[
!
-r
$BUILDROOT
$(
readlink
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
)
]
;
then
if
[
!
-r
$BUILDROOT
$(
readlink
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
)
]
;
then
rm
-fv
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
rm
-fv
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
ln
-s
$PRODUCTCUR
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
ln
-s
$PRODUCTCUR
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
fi
fi
# short command for run
# short command for run
if
[
!
-r
$BUILDROOT
/usr/bin/
$PRODUCT
]
;
then
add_bin_link_command
$PRODUCT
$PRODUCTCUR
ln
-s
$PRODUCTCUR
$BUILDROOT
/usr/bin/
$PRODUCT
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
fi
}
}
move_to_opt
()
move_to_opt
()
{
{
local
from
=
/usr/share/
$PRODUCT
local
from
=
"
$1
"
[
-n
"
$from
"
]
||
from
=
"/usr/share/
$PRODUCT
"
mkdir
-p
$BUILDROOT$PRODUCTDIR
/
mkdir
-p
$BUILDROOT$PRODUCTDIR
/
mv
$BUILDROOT
/
$from
/
*
$BUILDROOT$PRODUCTDIR
/
mv
$BUILDROOT
/
$from
/
*
$BUILDROOT$PRODUCTDIR
/
subst
"s|
$from
|
$PRODUCTDIR
|g"
$SPEC
subst
"s|
$from
|
$PRODUCTDIR
|g"
$SPEC
...
...
repack.d/sferum.sh
View file @
e8608eb4
...
@@ -4,12 +4,14 @@ BUILDROOT="$1"
...
@@ -4,12 +4,14 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
Sferum
PRODUCT
=
Sferum
PRODUCTCUR
=
sferum
PRODUCTDIR
=
/opt/
$PRODUCT
PRODUCTDIR
=
/opt/
$PRODUCT
.
$(
dirname
$0
)
/common-chromium-browser.sh
.
$(
dirname
$0
)
/common-chromium-browser.sh
mkdir
-p
$BUILDROOT
/usr/bin/
cleanup
ln
-s
$PRODUCTDIR
/sferum
$BUILDROOT
/usr/bin/sferum
subst
's|%files|%files\n/usr/bin/sferum|'
$SPEC
add_bin_exec_command
$PRODUCTCUR
add_bin_exec_command
$PRODUCT
$PRODUCTDIR
/
$PRODUCTCUR
fix_chrome_sandbox
fix_chrome_sandbox
repack.d/sputnik-browser-stable.sh
View file @
e8608eb4
...
@@ -4,7 +4,7 @@ BUILDROOT="$1"
...
@@ -4,7 +4,7 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
sputnik-browser
PRODUCT
=
sputnik-browser
PRODUCT
=
sputnik-browser-stable
PRODUCT
CUR
=
sputnik-browser-stable
PRODUCTDIR
=
/opt/
$PRODUCT
PRODUCTDIR
=
/opt/
$PRODUCT
...
@@ -16,11 +16,12 @@ copy_icons_to_share
...
@@ -16,11 +16,12 @@ copy_icons_to_share
cleanup
cleanup
# fix permission
chmod
o-w
-v
$BUILDROOT$PRODUCTDIR
/
*
add_bin_commands
add_bin_commands
use_system_xdg
use_system_xdg
install_deps
install_deps
# fix permission
chmod
o-w
-v
$BUILDROOT$PRODUCTDIR
/
*
repack.d/tamtam-app.sh
View file @
e8608eb4
...
@@ -4,16 +4,15 @@
...
@@ -4,16 +4,15 @@
BUILDROOT
=
"
$1
"
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
TamTam
PRODUCT
=
tamtam
PRODUCTDIR
=
/opt/
$PRODUCT
PRODUCTCUR
=
TamTam
PRODUCTDIR
=
/opt/
$PRODUCTCUR
.
$(
dirname
$0
)
/common-chromium-browser.sh
.
$(
dirname
$0
)
/common-chromium-browser.sh
subst
'1iAutoProv:no'
$SPEC
cleanup
mkdir
-p
$BUILDROOT
/usr/bin/
add_bin_exec_command
$PRODUCT
ln
-sf
$PRODUCTDIRT
/tamtam
$BUILDROOT
/usr/bin/tamtam
add_bin_exec_command
$PRODUCTCUR
$PRODUCTDIR
/
$PRODUCT
subst
"s|%files|%files
\n
%_bindir/tamtam|"
$SPEC
fix_chrome_sandbox
fix_chrome_sandbox
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