opt/firefox-bin/Pkgfile

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-10-23 17:51:30 +02:00
# Description: Firefox binary
2022-10-20 10:18:08 +02:00
# URL: http://www.mozilla.com
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: gtk3 dbus-glib xorg-libxcomposite xorg-libxcursor
2018-10-23 17:51:30 +02:00
name=firefox-bin
2024-01-09 19:29:52 +01:00
version=121.0.1
2019-01-29 00:08:04 +01:00
release=1
2023-08-02 09:38:38 +02: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
}