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
66669f09
Commit
66669f09
authored
Sep 06, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play assistant: add support for aarch64
parent
6fe6e245
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
assistant.sh
play.d/assistant.sh
+14
-8
No files found.
play.d/assistant.sh
View file @
66669f09
#!/bin/sh
PKGNAME
=
assistant
SUPPORTEDARCHES
=
"x86_64"
SUPPORTEDARCHES
=
"x86_64
aarch64
"
DESCRIPTION
=
"Assistant (Ассистент) from the official site"
# Assistant reclaim their rpm package supports ALT
...
...
@@ -28,23 +28,29 @@ fi
# parse vendor site
tmpfile
=
$(
mktemp
)
epm tool eget
-q
-O-
"
$URL
"
|
grep
-A
5
0
"Ассистент для LINUX"
>
$tmpfile
epm tool eget
-q
-O-
"
$URL
"
|
grep
-A
20
0
"Ассистент для LINUX"
>
$tmpfile
url_by_
order
()
url_by_
text
()
{
local
order
=
"
$1
"
local
pkg
=
"
$(
cat
$tmpfile
|
grep
"/Download/"
|
$order
-n1
|
sed
-e
's|.*href="||'
-e
's|".*||'
)
"
[
-n
"
$pkg
"
]
||
fatal
"Can't get Download href"
local
text
=
"
$1
"
local
pkg
=
"
$(
cat
$tmpfile
|
grep
-B1
"
$text
"
|
grep
"/Download/"
|
sed
-e
's|.*href="||'
-e
's|".*||'
)
"
[
-n
"
$pkg
"
]
||
fatal
"Can't get Download href
for
$text
"
#echo "https://мойассистент.рф$pkg"
echo
"https://xn--80akicokc0aablc.xn--p1ai
$pkg
"
}
case
$arch
-
$pkg
in
x86_64-rpm
)
URL
=
"
$(
url_by_
order
head
)
"
URL
=
"
$(
url_by_
text
"Скачать RPM пакет"
)
"
;;
x86_64-deb
)
URL
=
"
$(
url_by_order
tail
)
"
URL
=
"
$(
url_by_text
"Скачать DEB пакет"
)
"
;;
aarch64-rpm
)
URL
=
"
$(
url_by_text
"Скачать RPM пакет для ARM устройств"
)
"
;;
aarch64-deb
)
URL
=
"
$(
url_by_text
"Скачать DEB пакет для ARM устройств"
)
"
;;
*
)
fatal
"
$(
$DISTRVENDOR
-e
)
is not supported (arch
$arch
, package type is
$pkg
)"
...
...
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