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
51235c46
Commit
51235c46
authored
Oct 25, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add sputnik-browser
parent
e390f413
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
sputnik-browser.sh
prescription.d/sputnik-browser.sh
+50
-0
sputnik-browser-stable.sh
repack.d/sputnik-browser-stable.sh
+20
-0
No files found.
prescription.d/sputnik-browser.sh
0 → 100755
View file @
51235c46
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
sputnik-browser
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Sputnik browser from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported by vendor"
&&
exit
1
case
"
$(
$DISTRVENDOR
-e
)
"
in
Ubuntu/20.04
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/e91f9650-23cf-411c-9f51-f723acca5ced/sputnik-browser-stable_5.5.6078.0-1_amd64.deb
||
exit
;;
Ubuntu/16.04
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/f133a2c4-0d2e-4e40-989b-5b86d9b246e5/sputnik-browser-stable_5.5.6145.0-1_amd64.deb
||
exit
;;
Ubuntu/
*
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/e91f9650-23cf-411c-9f51-f723acca5ced/sputnik-browser-stable_5.5.6078.0-1_amd64.deb
||
exit
;;
ALTLinux/c8
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/6b338f94-64cc-4530-9515-0c2b1bda36ee/sputnik-browser-stable-5.5.6150.0-1.x86_64.rpm
||
exit
;;
ALTLinux/
*
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/8e611d44-be64-4397-8ce4-a4af5616c65e/sputnik-browser-stable-5.5.6108.0-1.x86_64.rpm
||
exit
;;
AstraLinux/
*
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/ebd059bb-98ab-4851-8c7b-1d6bada095b6/sputnik-browser-stable_5.5.6154.0-1_amd64.deb
||
exit
;;
RedOS/
*
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/7f5d5ad0-a5f9-4ccd-ad4a-6e4a1be777de/sputnik-browser-stable-5.5.6101.0-1.x86_64.rpm
||
exit
;;
RosaLinux/
*
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/b4a5bacd-31aa-4e6f-bffa-8fc53b35a51a/sputnik-browser-stable-5.5.6115.0-1.x86_64.rpm
||
exit
;;
Windows/
*
)
epm
install
https://upd.sputnik-lab.com/api-updates/updates/download/21425e74-e3fb-42bc-95cd-e3c243db75b5/SputnikOfflineInstaller-b2c-5.4.5991.1.exe
||
exit
;;
esac
repack.d/sputnik-browser-stable.sh
0 → 100755
View file @
51235c46
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
sputnik-browser
subst
's|%files|%files\n/usr/share/icons/hicolor/*x*/apps/*.png|'
$SPEC
# Make relative symlink
mkdir
-p
$BUILDROOT
/usr/bin
ln
-s
../../opt/
$PRODUCT
/
$PRODUCT
$BUILDROOT
/usr/bin/
$PRODUCT
-stable
ln
-s
$PRODUCT
-stable
$BUILDROOT
/usr/bin/
$PRODUCT
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
for
i
in
16 24 32 48 64 128 256
;
do
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
cp
$BUILDROOT
/opt/
$PRODUCT
/product_logo_
$i
.png
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$PRODUCT
.png
done
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