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
Vladislav
eepm
Commits
1005f858
Commit
1005f858
authored
4 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add yandex-browser to play, improve repacking
parent
10e98bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
1 deletion
+45
-1
yandex-browser.sh
prescription.d/yandex-browser.sh
+24
-0
yandex-browser-beta.sh
repack.d/yandex-browser-beta.sh
+21
-1
No files found.
prescription.d/yandex-browser.sh
0 → 100755
View file @
1005f858
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
yandex-browser-beta
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install Yandex browser from the official site"
&&
exit
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta
# epm uses eget to download * names
epm
install
"https://repo.yandex.ru/yandex-browser/deb/pool/main/y/yandex-browser-beta/
$(
epm print constructname
$PKGNAME
"*"
amd64 deb
)
"
This diff is collapsed.
Click to expand it.
repack.d/yandex-browser-beta.sh
View file @
1005f858
...
@@ -4,4 +4,24 @@
...
@@ -4,4 +4,24 @@
BUILDROOT
=
"
$1
"
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
SPEC
=
"
$2
"
[
-x
$BUILDROOT
/usr/bin/yandex-browser
]
||
ln
-sv
yandex-browser-beta
$BUILDROOT
/usr/bin/yandex-browser
PRODUCT
=
yandex-browser-beta
PRODUCTDIR
=
/opt/yandex/browser-beta
subst
's|%files|%files\n/usr/share/icons/hicolor/*x*/apps/*.png|'
$SPEC
for
i
in
16 22 24 32 48 64 128 256
;
do
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
cp
$BUILDROOT
/
$PRODUCTDIR
/product_logo_
${
i
}
.png
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$PRODUCT
.png
done
rm
-f
$BUILDROOT
/etc/cron.daily/
$PRODUCT
subst
"s|.*/etc/cron.daily/
$PRODUCT
.*||"
$SPEC
# unsupported format
rm
-f
$BUILDROOT
/usr/share/menu/
$PRODUCT
.menu
subst
"s|.*/usr/share/menu/
$PRODUCT
.menu.*||"
$SPEC
if
!
grep
-q
'^"/usr/bin/yandex-browser"'
$SPEC
;
then
subst
's|\(.*/usr/bin/yandex-browser.*\)|"/usr/bin/yandex-browser"\n\1|'
$SPEC
[
-x
$BUILDROOT
/usr/bin/yandex-browser
]
||
ln
-sv
yandex-browser-beta
$BUILDROOT
/usr/bin/yandex-browser
fi
This diff is collapsed.
Click to expand it.
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