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
23251b2a
Commit
23251b2a
authored
Mar 20, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: do correct repack for brave browser
parent
f322b16f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
1 deletion
+60
-1
brave.sh
prescription.d/brave.sh
+4
-1
brave-browser-nightly.sh
repack.d/brave-browser-nightly.sh
+56
-0
No files found.
prescription.d/brave.sh
View file @
23251b2a
...
...
@@ -20,7 +20,10 @@ fi
arch
=
x86_64
pkgtype
=
rpm
repack
=
''
# we have workaround for their postinstall script, so always repack rpm package
[
"
$(
$DISTRVENDOR
-p
)
"
=
"deb"
]
||
repack
=
'--repack'
PKG
=
$(
$EGET
--list
--latest
https://github.com/brave/brave-browser/releases
"
$PKGNAME
-*.
$arch
.
$pkgtype
"
)
||
fatal
"Can't get package URL"
epm
install
"
$PKG
"
epm
$repack
install
"
$PKG
"
repack.d/brave-browser-nightly.sh
0 → 100755
View file @
23251b2a
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
brave-browser
PRODUCTCUR
=
brave-browser-nightly
PRODUCTDIR
=
/opt/brave.com/brave-nightly
# needed alternatives
subst
'1iProvides:webclient'
$SPEC
subst
"s|%files|%files
\n
/etc/alternatives/packages.d/
$PRODUCT
|"
$SPEC
mkdir
-p
$BUILDROOT
/etc/alternatives/packages.d/
cat
<<
EOF
>
$BUILDROOT
/etc/alternatives/packages.d/
$PRODUCT
/usr/bin/xbrowser /usr/bin/
$PRODUCT
80
/usr/bin/x-www-browser /usr/bin/
$PRODUCT
80
EOF
# short command for run
ln
-s
$PRODUCTCUR
$BUILDROOT
/usr/bin/
$PRODUCT
#subst "s|%files|%files\n/usr/bin/$PRODUCT|" $SPEC
# fix main link
rm
-v
$BUILDROOT
/usr/bin/
$PRODUCTCUR
ln
-s
$PRODUCTDIR
/
$PRODUCTCUR
$BUILDROOT
/usr/bin/
$PRODUCTCUR
rm
-v
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
ln
-s
$PRODUCTCUR
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
for
i
in
16 24 32 48 64 128 256
;
do
[
-r
$BUILDROOT
/
$PRODUCTDIR
/product_logo_
${
i
}
_nightly.png
]
||
continue
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
cp
$BUILDROOT
/
$PRODUCTDIR
/product_logo_
${
i
}
_nightly.png
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$PRODUCTCUR
.png
done
subst
's|%files|%files\n/usr/share/icons/hicolor/*x*/apps/*.png|'
$SPEC
if
[
-r
$BUILDROOT
/etc/cron.daily/
$PRODUCTCUR
]
;
then
rm
-f
$BUILDROOT
/etc/cron.daily/
$PRODUCTCUR
subst
's|.*/etc/cron.daily/.*||'
$SPEC
fi
# replace embedded xdg tools
for
EMBDIR
in
$PRODUCTDIR
/
{
xdg-mime,xdg-settings
}
;
do
[
-s
$BUILDROOT$EMBDIR
]
||
continue
rm
-v
$BUILDROOT$EMBDIR
ln
-s
/usr/bin/
$(
basename
$EMBDIR
)
$BUILDROOT$EMBDIR
done
# install all requires packages before packing (the list have got with rpmreqs package | xargs echo)
epm
install
--skip-installed
at-spi2-atk file gawk GConf glib2
grep
libatk libat-spi2-core libcairo libcups libdbus libdrm libexpat libgbm libgdk-pixbuf libgio libgtk+3 libnspr libnss libpango
\
libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst
sed tar
which xdg-utils xprop
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