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
b6e89210
Commit
b6e89210
authored
Apr 02, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play mailruagent: rewritten
parent
7cdde317
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
47 deletions
+19
-47
mailruagent.sh
pack.d/mailruagent.sh
+15
-2
mailruagent.sh
play.d/mailruagent.sh
+1
-6
mailruagent.sh
repack.d/mailruagent.sh
+3
-39
No files found.
pack.d/mailruagent.sh
View file @
b6e89210
...
@@ -13,9 +13,22 @@ else
...
@@ -13,9 +13,22 @@ else
fi
fi
mkdir
opt
mkdir
opt
mv
agent.tar opt/
$PRODUCT
||
fatal
mv
agent
*
opt/
$PRODUCT
||
fatal
# https://webagent.mail.ru/favicon.ico
install_file ipfs://QmZNK3w2i2CTUwfHfxiJR6HR2CDaALUUhJSq4bfoAEUMMH /usr/share/pixmaps/
$PRODUCT
.png
PKGNAME
=
$PRODUCT
-
$VERSION
.tar
PKGNAME
=
$PRODUCT
-
$VERSION
.tar
erc pack
$PKGNAME
opt/
$PRODUCT
erc pack
$PKGNAME
opt/
$PRODUCT
usr
cat
<<
EOF
>
$PKG
.eepm.yaml
name:
$PRODUCT
group: Networking/Instant messaging
license: Proprietary
url: https://agent.mail.ru/linux
summary: Mail.ru agent
description: Mail.ru agent.
EOF
return_tar
$PKGNAME
return_tar
$PKGNAME
play.d/mailruagent.sh
View file @
b6e89210
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
PKGNAME
=
mailruagent
PKGNAME
=
mailruagent
SUPPORTEDARCHES
=
"x86_64"
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
VERSION
=
"
$2
"
# is not supported
DESCRIPTION
=
"Mail.ru Agent for Linux from the official site"
DESCRIPTION
=
''
#"Mail.ru Agent for Linux from the official site"
URL
=
"https://agent.mail.ru/linux"
URL
=
"https://agent.mail.ru/linux"
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common.sh
...
@@ -18,7 +17,3 @@ fi
...
@@ -18,7 +17,3 @@ fi
PKGURL
=
"https://hb.bizmrg.com/agent-www/linux/x64/agent.tar.xz"
PKGURL
=
"https://hb.bizmrg.com/agent-www/linux/x64/agent.tar.xz"
install_pack_pkgurl
"
$VERSION
"
install_pack_pkgurl
"
$VERSION
"
#PKGURL="$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/agent | epm --inscript tool json -b | grep '\["channel-map",0,"download","url"\]' | head -n1 | sed -e 's|.*"\(.*\)"$|\1|' )"
#epm install "$PKGURL"
repack.d/mailruagent.sh
View file @
b6e89210
...
@@ -3,20 +3,11 @@
...
@@ -3,20 +3,11 @@
BUILDROOT
=
"
$1
"
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
PREINSTALL_PACKAGES
=
"glib2 libdbus libexpat libgbm libgio libgpg-error libuuid zlib fontconfig libGL"
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common.sh
subst
"s|^Group:.*|Group: Networking/Instant messaging|"
$SPEC
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/agent
subst
"s|^License: unknown
$|
Proprietary|"
$SPEC
subst
"s|^URL:.*|URL: https://https://agent.mail.ru/linux|"
$SPEC
subst
"s|^Summary:.*|Summary: Mail.ru Agent for Linux|"
$SPEC
add_bin_exec_command
$PRODUCT
# create desktop file
cat
<<
EOF
| create_file /usr/share/applications/
$PRODUCT
.desktop
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
[Desktop Entry]
Version=1.0
Version=1.0
Type=Application
Type=Application
...
@@ -30,33 +21,6 @@ MimeType=x-scheme-handler/icq;
...
@@ -30,33 +21,6 @@ MimeType=x-scheme-handler/icq;
Keywords=icq;
Keywords=icq;
EOF
EOF
pack_file /usr/share/applications/
$PRODUCT
.desktop
# https://hb.bizmrg.com/icq-www/linux/x64/packages/10.0.13286/icq.png
install_file https://dashboard.snapcraft.io/site_media/appmedia/2020/04/icq_copy.png /usr/share/pixmaps/
$PRODUCT
.png
subst
"s|.*/opt/icq/unittests.*||"
$SPEC
subst
"s|.*/opt/icq/unittests.*||"
$SPEC
# ignore embedded libs
add_libs_requires
filter_from_requires libQt5 libxcb
"libX.*"
if
epm assure patchelf
;
then
cd
$BUILDROOT$PRODUCTDIR
for
i
in
$PRODUCT
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/lib'
$i
done
for
i
in
lib/
*
.so.
*
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
done
for
i
in
QtQuick.2/lib
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/../lib'
$i
done
for
i
in
QtQuick/
*
/lib
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/../../lib'
$i
done
fi
set_autoreq
'yes'
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