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
1e99bf63
Commit
1e99bf63
authored
Jul 02, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add firefox-nightly
parent
72e6b470
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
0 deletions
+78
-0
firefox-nightly.sh
play.d/firefox-nightly.sh
+15
-0
firefox-nightly.sh
repack.d/firefox-nightly.sh
+63
-0
No files found.
play.d/firefox-nightly.sh
0 → 100755
View file @
1e99bf63
#!/bin/sh
PKGNAME
=
firefox-nightly
SUPPORTEDARCHES
=
"x86_64"
#VERSION="$2"
DESCRIPTION
=
"Firefox nightly from the official site"
.
$(
dirname
$0
)
/common.sh
arch
=
x86_64
VERSION
=
"*"
PKGURL
=
"https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-
$VERSION
.en-US.linux-
$arch
.deb"
epm
install
"
$PKGURL
"
repack.d/firefox-nightly.sh
0 → 100755
View file @
1e99bf63
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
firefox
PRODUCTCUR
=
$(
basename
$0
.sh
)
PRODUCTDIR
=
/opt/
$PRODUCTCUR
PREINSTALL_PACKAGES
=
"fontconfig glib2 libalsa libatk libcairo libcairo-gobject libdbus libdbus-glib libfreetype libgdk-pixbuf libgio libgtk+3 libharfbuzz libpango libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst"
.
$(
dirname
$0
)
/common-chromium-browser.sh
#for i in firefox firefox-devel ; do
# [ "$i" = "$PRODUCTCUR" ] && continue
# subst "1iConflicts:$i" $SPEC
#done
subst
'1iAutoReq:yes,noshell,nomonolib,nomono,nopython'
$SPEC
subst
'1iAutoProv:no'
$SPEC
#set_alt_alternatives 65
move_to_opt /usr/lib/
$PRODUCTCUR
rm
-f
$BUILDROOT
/usr/bin/
$PRODUCTCUR
add_bin_link_command
$PRODUCTCUR
$PRODUCTDIR
/
$PRODUCT
#add_bin_link_command
copy_icons_to_share
()
{
local
iconname
=
$PRODUCT
# try get icon name from desktopfile
local
desktopfile
=
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
[
-r
$desktopfile
]
||
desktopfile
=
$BUILDROOT
/usr/share/applications/
$PRODUCTCUR
.desktop
if
[
-r
$desktopfile
]
;
then
iconname
=
"
$(
cat
$desktopfile
|
grep
"^Icon"
|
head
-n1
|
sed
-e
's|Icon=||'
)
"
fi
for
i
in
16 32 48 64 128
;
do
sicon
=
$BUILDROOT$PRODUCTDIR
/browser/chrome/icons/default/default
$i
.png
[
-r
$sicon
]
||
continue
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
rm
-f
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$iconname
.png
cp
$sicon
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$iconname
.png
done
#subst "s|%files|%files\n/usr/share/icons/hicolor/*x*/apps/$iconname.png|" $SPEC
}
copy_icons_to_share
if
epm assure patchelf
;
then
for
i
in
$BUILDROOT
/
$PRODUCTDIR
/
{
lib
*
.so,plugin-container
}
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/'
$i
||
continue
done
for
i
in
$BUILDROOT
/
$PRODUCTDIR
/gmp-clearkey/0.1/lib
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/../../'
$i
||
continue
done
fi
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