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
9b3edc20
Commit
9b3edc20
authored
Apr 04, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play rustdesk: skip nighttly downloading, rewrite repack
parent
435ddcec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
45 deletions
+21
-45
rustdesk.sh
play.d/rustdesk.sh
+6
-0
rustdesk.sh
repack.d/rustdesk.sh
+15
-45
No files found.
play.d/rustdesk.sh
View file @
9b3edc20
...
@@ -23,6 +23,12 @@ fi
...
@@ -23,6 +23,12 @@ fi
PKGURL
=
$(
eget
--list
--latest
https://github.com/rustdesk/rustdesk/releases
"
$MASK
"
)
PKGURL
=
$(
eget
--list
--latest
https://github.com/rustdesk/rustdesk/releases
"
$MASK
"
)
#
if
[
"
$VERSION
"
=
"*"
]
&&
echo
"
$PKGURL
"
|
grep
-q
"nightly"
;
then
echo
"Skipping nightly
$PKGURL
..."
PKGURL
=
$(
eget
--list
--second-latest
https://github.com/rustdesk/rustdesk/releases
"
$MASK
"
)
fi
install_pkgurl
install_pkgurl
cat
<<
EOF
cat
<<
EOF
...
...
repack.d/rustdesk.sh
View file @
9b3edc20
...
@@ -4,59 +4,17 @@
...
@@ -4,59 +4,17 @@
BUILDROOT
=
"
$1
"
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PRODUCT
=
rustdesk
# FIXME: move 1.2.0 to /opt
PRODUCTDIR
=
/usr/lib/
$PRODUCT
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common.sh
# put service file to the normal place
# put service file to the normal place
mkdir
-p
$BUILDROOT
/etc/systemd/system/
install_file usr/share/rustdesk/files/systemd/rustdesk.service /etc/systemd/system/
$PRODUCT
.service
cp
$BUILDROOT
/usr/share/rustdesk/files/systemd/rustdesk.service
$BUILDROOT
/etc/systemd/system/
$PRODUCT
.service
remove_dir /usr/share/rustdesk/files/systemd
remove_dir /usr/share/rustdesk/files/systemd
pack_file /etc/systemd/system/
$PRODUCT
.service
VERSION
=
$(
grep
"^Version:"
$SPEC
|
sed
-e
"s|Version: ||"
)
VERSION
=
$(
grep
"^Version:"
$SPEC
|
sed
-e
"s|Version: ||"
)
if
[
"
$VERSION
"
=
"1.1.8"
]
||
[
"
$VERSION
"
=
"1.1.9"
]
;
then
if
[
"
$VERSION
"
=
"1.1.8"
]
||
[
"
$VERSION
"
=
"1.1.9"
]
;
then
echo
"Note: use 1.1.x compatibility script"
echo
"Note: use 1.1.x compatibility script"
echo
"Categories=GNOME;GTK;Network;RemoteAccess;"
>>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
echo
"Categories=GNOME;GTK;Network;RemoteAccess;"
>>
usr/share/applications/
$PRODUCT
.desktop
# thread 'main' panicked at 'error: 'libsciter-gtk.so' was not found neither in PATH nor near the current executable.
#move_to_opt /usr/lib/rustdesk
#mv $BUILDROOT/usr/bin/$PRODUCT $BUILDROOT/$PRODUCTDIR
#pack_file $PRODUCTDIR/$PRODUCT
#add_bin_exec_command
#remove_dir /usr/lib
# Works without this
#epm assure patchelf || fatal
#for i in $BUILDROOT/usr/bin/$PRODUCT ; do
# a= patchelf --set-rpath '$PRODUCTDIR' $i || continue
#done
else
#### 1.2.0 and above
subst
"s|^Categories.*|Categories=GNOME;GTK;Network;RemoteAccess;|"
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
subst
"s|/usr/share/rustdesk/files/rustdesk.png|
$PRODUCT
|"
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
if
[
-f
$BUILDROOT
/usr/share/rustdesk/files/rustdesk.png
]
;
then
ICONFILE
=
$PRODUCT
.png
install_file /usr/share/rustdesk/files/rustdesk.png /usr/share/pixmaps/
$ICONFILE
fi
#move_to_opt /usr/lib/rustdesk
add_bin_link_command
if
epm assure patchelf
;
then
for
i
in
$BUILDROOT
/
$PRODUCTDIR
/lib/
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/'
$i
||
continue
done
fi
filter_from_requires /etc/X11/xinit/Xsession /etc/default/locale /usr/etc/X11/xdm/Xsession
fi
add_libs_requires
add_libs_requires
...
@@ -74,3 +32,15 @@ if ! epm install --skip-installed --no-remove python3-module-pynput ; then
...
@@ -74,3 +32,15 @@ if ! epm install --skip-installed --no-remove python3-module-pynput ; then
fi
fi
exit
exit
fi
#### 1.2.3 and above
move_to_opt /usr/lib/rustdesk
subst
"s|^Categories.*|Categories=GNOME;GTK;Network;RemoteAccess;|"
usr/share/applications/
$PRODUCT
.desktop
add_bin_link_command
add_unirequires curl
add_libs_requires
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