blob: 01c6f5b59ec562528ef1a56a1695a38ee0595d3c (
plain)
1 # Description: Firefox binary
2 # URL: http://www.mozilla.com
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: gtk3 dbus-glib xorg-libxcomposite xorg-libxcursor
5
6 name=firefox-bin
7 version=109.0
8 release=1
9 source=(http://ftp.mozilla.org/pub/firefox/releases/$version/linux-x86_64/en-US/firefox-$version.tar.bz2 \
10 policies.json firefox.desktop)
11
12 build() {
13 cd firefox
14 install -d $PKG/usr/{lib,bin}
15 mv $SRC/firefox $PKG/usr/lib/firefox
16 ln -s /usr/lib/firefox/firefox $PKG/usr/bin/firefox
17 mkdir -p $PKG/usr/lib/firefox/lib
18
19 mkdir -p $PKG/etc/revdep.d
20 echo "/usr/lib/firefox" > $PKG/etc/revdep.d/firefox-bin
21
22 #We don't want these 'features'
23 rm -r $PKG/usr/lib/firefox/browser/features
24 # Disable autoupdate
25 mkdir $PKG/usr/lib/firefox/distribution
26
27 install -m644 $SRC/policies.json $PKG/usr/lib/firefox/distribution/
28
29 install -m644 -D $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
30 install -m755 -d $PKG/usr/share/pixmaps
31 ln -s /usr/lib/firefox/browser/chrome/icons/default/default32.png \
32 $PKG/usr/share/pixmaps/firefox.png
33 }
|