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
2d47662e
Commit
2d47662e
authored
Apr 18, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: cleanup scripts
parent
42d19603
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
51 additions
and
20 deletions
+51
-20
Autodesk_EAGLE.sh
repack.d/Autodesk_EAGLE.sh
+2
-0
anydesk.sh
repack.d/anydesk.sh
+1
-1
atom-beta.sh
repack.d/atom-beta.sh
+2
-1
chrome-remote-desktop.sh
repack.d/chrome-remote-desktop.sh
+7
-4
common-chromium-browser.sh
repack.d/common-chromium-browser.sh
+3
-2
common.sh
repack.d/common.sh
+8
-0
discord.sh
repack.d/discord.sh
+8
-5
duplicati.sh
repack.d/duplicati.sh
+11
-0
generic-appimage.sh
repack.d/generic-appimage.sh
+6
-1
geogebra-classic.sh
repack.d/geogebra-classic.sh
+1
-0
skypeforlinux.sh
repack.d/skypeforlinux.sh
+1
-3
teams.sh
repack.d/teams.sh
+1
-3
No files found.
repack.d/Autodesk_EAGLE.sh
View file @
2d47662e
...
...
@@ -51,3 +51,5 @@ epm assure patchelf || exit
for
i
in
$BUILDROOT
/
$PRODUCTDIR
/lib/
{
libssl.so,libssl.so.1.
*
}
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/'
$i
done
epm
install
--skip-installed
coreutils fontconfig glib2 libalsa libcom_err libcups libdrm libexpat libfreetype libGL libkeyutils libkrb5 libnspr libnss libX11 libxcb libXrandr zlib
repack.d/anydesk.sh
View file @
2d47662e
...
...
@@ -24,7 +24,7 @@ epm install --skip-installed fontconfig glib2 libatk libcairo libfreetype libgdk
subst
'1iAutoProv:no'
$SPEC
remove_file usr/share/anydesk/files/init/anydesk
remove_file
/
usr/share/anydesk/files/init/anydesk
# put service file to the normal place
mkdir
-p
$BUILDROOT
/etc/systemd/system/
...
...
repack.d/atom-beta.sh
View file @
2d47662e
...
...
@@ -37,7 +37,8 @@ subst "s|.*$EMBDIR/..*\"||" $SPEC
# replace embedded node and npm
for
EMBDIR
in
/usr/share/atom-beta/resources/app/apm/bin/
{
node,npm
}
/usr/share/atom-beta/resources/app/apm/node_modules/.bin/
{
npm,npx
}
/usr/share/atom-beta/resources/app/apm/node_modules/open/xdg-open
;
do
rm
-v
$BUILDROOT$EMBDIR
echo
"Removing
$BUILDROOT$EMBDIR
..."
rm
$BUILDROOT$EMBDIR
ln
-s
/usr/bin/
$(
basename
$EMBDIR
)
$BUILDROOT$EMBDIR
done
...
...
repack.d/chrome-remote-desktop.sh
View file @
2d47662e
...
...
@@ -2,11 +2,14 @@
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
P
KGNAME
=
chrome-remote-desktop
P
RODUCT
=
chrome-remote-desktop
rm
-f
$BUILDROOT
/etc/cron.daily/
$PKGNAME
subst
"s|.*/etc/cron.daily/
$PKGNAME
.*||"
$SPEC
.
$(
dirname
$0
)
/common-chromium-browser.sh
cleanup
subst
'1iBuildRequires:rpm-build-python3'
$SPEC
# install all requires packages before packing ($ rpmreqs chrome-remote-desktop | xargs echo)
epm
install
--skip-installed
coreutils glib2 libcairo libdbus libdrm libexpat libgbm libgio libgtk+3 libnspr libnss libpango libX11 libxcb libXdamage libXext libXfixes libXrandr libXtst python3-base python3-module-psutil
sudo
python3
epm
install
--skip-installed
coreutils glib2 libcairo libdbus libdrm libexpat libgbm libgio libgtk+3 libnspr libnss libpango libX11 libxcb libXdamage libXext libXfixes libXrandr libXtst python3-base python3-module-psutil
python3 rpm-build-python3 libutempter
repack.d/common-chromium-browser.sh
View file @
2d47662e
...
...
@@ -73,8 +73,9 @@ use_system_xdg()
install_deps
()
{
# install all requires packages before packing (the list have got with rpmreqs package | xargs echo)
epm
install
--skip-installed
at-spi2-atk file GConf glib2
grep
libatk libat-spi2-core libcairo libcups libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango
\
libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst
sed
which xdg-utils xprop
epm
install
--skip-installed
at-spi2-atk file GConf glib2
grep
libatk libat-spi2-core libalsa libcairo libcups libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango
\
libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst
sed
which xdg-utils xprop
\
libsecret
}
...
...
repack.d/common.sh
View file @
2d47662e
...
...
@@ -71,3 +71,11 @@ fix_chrome_sandbox()
[
-e
"
$BUILDROOT$sandbox
"
]
||
return
chmod
4711
$BUILDROOT$sandbox
}
# ignore embedded libs
drop_embedded_reqs
()
{
subst
'1i%filter_from_requires /^libGLESv2.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libEGL.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libffmpeg.so().*/d'
$SPEC
}
repack.d/discord.sh
View file @
2d47662e
...
...
@@ -5,18 +5,21 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
PRODUCT
=
discord
LIBDIR
=
/opt
PRODUCTDIR
=
/opt/
$PRODUCT
mkdir
-p
$BUILDROOT$LIBDIR
/
mv
$BUILDROOT
/usr/share/
$PRODUCT
/
$BUILDROOT$PRODUCTDIR
/
subst
"s|/usr/share/
$PRODUCT
|
$PRODUCTDIR
|g"
$SPEC
.
$(
dirname
$0
)
/common-chromium-browser.sh
move_to_opt
fix_chrome_sandbox
install_deps
subst
'1iAutoProv:no'
$SPEC
# usual command skype
mkdir
-p
$BUILDROOT
/usr/bin/
ln
-sf
$PRODUCTDIR
/Discord
$BUILDROOT
/usr/bin/
$PRODUCT
subst
"s|/usr/share/discord/Discord|/usr/bin/
$PRODUCT
|g"
$BUILDROOT
/
$PRODUCTDIR
/discord.desktop
ln
-sf
$PRODUCTDIR
/discord.desktop
$BUILDROOT
/usr/share/applications/discord.desktop
ln
-sf
$PRODUCTDIR
/discord.png
$BUILDROOT
/usr/share/pixmaps/discord.png
repack.d/duplicati.sh
View file @
2d47662e
...
...
@@ -6,3 +6,14 @@ SPEC="$2"
REQUIRES
=
"mono-full,libgtk-sharp2"
subst
"s|^
\(
Name: .*
\)
$|
# Converted from original package requires
\n
Requires:
$REQUIRES
\n\1
|g"
$SPEC
subst
'1iBuildRequires: rpm-build-python3'
$SPEC
subst
'1i%add_python3_path /usr/lib/duplicati'
$SPEC
subst
'1iAutoProv: no'
$SPEC
subst
'1iAutoReq: yes,nomonolib,nomono'
$SPEC
subst
's|env python.*|env python3|'
$BUILDROOT
/usr/lib/duplicati/utility-scripts/DuplicatiVerify.py
subst
's|/usr/bin/bash|/bin/bash|'
$BUILDROOT
/usr/lib/duplicati/
{
lvm-scripts/
*
.sh,run-script-example.sh
}
$BUILDROOT
/usr/bin/
{
duplicati-server,duplicati-cli,duplicati
}
epm
install
--skip-installed
rpm-build-python3 mono-full libgtk-sharp2
repack.d/generic-appimage.sh
View file @
2d47662e
...
...
@@ -26,8 +26,13 @@ pack_file /usr/share/applications/$DESKTOPFILE
mkdir
-p
$BUILDROOT
/usr/share/pixmaps/
cp
$ICONFILE
$BUILDROOT
/usr/share/pixmaps/
pack_file /usr/share/pixmaps/
kontur-talk.png
pack_file /usr/share/pixmaps/
$ICONFILE
cd
-
>
/dev/null
add_bin_exec_command
$PRODUCT
$PRODUCTDIR
/AppRun
subst
'1iAutoProv:no'
$SPEC
# ignore embedded libs
drop_embedded_reqs
repack.d/geogebra-classic.sh
View file @
2d47662e
...
...
@@ -21,4 +21,5 @@ cleanup
fix_chrome_sandbox
install_deps
epm
install
--skip-installed
python3 rpm-build-python3
repack.d/skypeforlinux.sh
View file @
2d47662e
...
...
@@ -22,9 +22,7 @@ subst "s|^SKYPE_PATH=.*|SKYPE_PATH=$PRODUCTDIR/skypeforlinux|" $BUILDROOT/usr/bi
subst
'1iAutoProv:no'
$SPEC
# ignore embedded libs
subst
'1i%filter_from_requires /^libGLESv2.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libEGL.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libffmpeg.so().*/d'
$SPEC
drop_embedded_reqs
# usual command skype
mkdir
-p
$BUILDROOT
/usr/bin/
...
...
repack.d/teams.sh
View file @
2d47662e
...
...
@@ -26,8 +26,6 @@ subst "s|/usr/share/teams|$LIBDIR/$PRODUCT|" $SPEC
subst
'1iAutoProv:no'
$SPEC
# ignore embedded libs
subst
'1i%filter_from_requires /^libGLESv2.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libEGL.so().*/d'
$SPEC
subst
'1i%filter_from_requires /^libffmpeg.so().*/d'
$SPEC
drop_embedded_reqs
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