2018-10-23 17:51:30 +02:00
|
|
|
# Description: Firefox binary
|
2021-01-26 12:40:07 +01:00
|
|
|
# URL: http://www.mozilla.com
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: gtk3 dbus-glib
|
2018-10-23 17:51:30 +02:00
|
|
|
|
|
|
|
name=firefox-bin
|
2021-06-02 10:38:21 +02:00
|
|
|
version=89.0
|
2019-01-29 00:08:04 +01:00
|
|
|
release=1
|
2018-12-10 18:09:58 +01:00
|
|
|
source=(http://ftp.mozilla.org/pub/firefox/releases/$version/linux-x86_64/en-US/firefox-$version.tar.bz2 \
|
2019-01-28 23:45:40 +01:00
|
|
|
policies.json firefox.desktop)
|
2018-10-23 17:51:30 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd firefox
|
|
|
|
install -d $PKG/usr/{lib,bin}
|
|
|
|
mv $SRC/firefox $PKG/usr/lib/firefox
|
|
|
|
ln -s /usr/lib/firefox/firefox $PKG/usr/bin/firefox
|
|
|
|
mkdir -p $PKG/usr/lib/firefox/lib
|
|
|
|
|
2018-12-15 22:18:32 +01:00
|
|
|
mkdir -p $PKG/etc/revdep.d
|
|
|
|
echo "/usr/lib/firefox" > $PKG/etc/revdep.d/firefox-bin
|
2018-11-02 21:46:31 +01:00
|
|
|
|
2018-12-10 18:09:58 +01:00
|
|
|
#We don't want these 'features'
|
2018-10-23 17:51:30 +02:00
|
|
|
rm -r $PKG/usr/lib/firefox/browser/features
|
2018-12-10 18:09:58 +01:00
|
|
|
# Disable autoupdate
|
|
|
|
mkdir $PKG/usr/lib/firefox/distribution
|
2018-10-23 17:51:30 +02:00
|
|
|
|
2018-12-10 18:09:58 +01:00
|
|
|
install -m644 $SRC/policies.json $PKG/usr/lib/firefox/distribution/
|
2019-01-28 23:45:40 +01:00
|
|
|
|
|
|
|
install -m644 -D $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
|
|
|
|
install -m755 -d $PKG/usr/share/pixmaps
|
|
|
|
ln -s /usr/lib/firefox/browser/chrome/icons/default/default32.png \
|
|
|
|
$PKG/usr/share/pixmaps/firefox.png
|
2018-10-23 17:51:30 +02:00
|
|
|
}
|