summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52526664ca601eb24d4286e520101b38eb58ea6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Maintainer: Troplo <troplo@troplo.com>

pkgname=flowfox-bin
_pkgname=flowfox
pkgver=133.0
pkgrel=1
url=https://github.com/Troplo/ffox
conflicts=("flowfox")
_github_rel=firefox-133.0.en-US.linux-x86_64-1
pkgdesc="Fork of Firefox with minimal changes, including rebinding of default keyboard shortcuts to better match Chromium. Not affiliated with Mozilla. (Binary version)"
arch=('x86_64' 'i686')
license=(MPL GPL LGPL)
depends=(
  alsa-lib
  at-spi2-core
  bash
  cairo
  dbus
  ffmpeg
  fontconfig
  freetype2
  gcc-libs
  gdk-pixbuf2
  glib2
  glibc
  gtk3
  hicolor-icon-theme
  libpulse
  libx11
  libxcb
  libxcomposite
  libxdamage
  libxext
  libxfixes
  libxrandr
  libxss
  libxt
  mime-types
  nspr
  nss
  pango
  ttf-font
)
optdepends=(
  'hunspell-en_US: Spell checking, American English'
  'libnotify: Notification integration'
  'networkmanager: Location detection via available WiFi networks'
  'speech-dispatcher: Text-to-Speech'
  'xdg-desktop-portal: Screensharing with Wayland'
)
options=(!strip)
# https://github.com/Troplo/foxrel/releases/download/firefox-128.0.4.en-US.linux-x86_64-1/firefox-128.0.4.en-US.linux-x86_64.tar.bz2
_archive="https://github.com/Troplo/foxrel/releases/download"
source_x86_64=("firefox-$pkgver-x86_64.tar.bz2::$_archive/$_github_rel/firefox-$pkgver.en-US.linux-x86_64.tar.bz2")
source=($_pkgname.sh
        $_pkgname.desktop
        policies.json)

package() {
  # Create directories
  mkdir -p "$pkgdir"/usr/bin
  mkdir -p "$pkgdir"/usr/share/applications
  mkdir -p "$pkgdir"/opt

  # Install
  cp -r firefox/ "$pkgdir"/opt/$_pkgname

  # Launchers
  install -m755 $_pkgname.sh "$pkgdir"/usr/bin/$_pkgname

  # Desktops
  install -m644 *.desktop "$pkgdir"/usr/share/applications/

  # Icons
  for i in 16x16 32x32 48x48 64x64 128x128; do
    install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/
    ln -s /opt/$_pkgname/browser/chrome/icons/default/default${i/x*}.png \
          "$pkgdir"/usr/share/icons/hicolor/$i/apps/$_pkgname.png
  done

  # Use system-provided dictionaries
  #rm -r "$pkgdir"/opt/$_pkgname/dictionaries
  ln -Ts /usr/share/hunspell "$pkgdir"/opt/$_pkgname/dictionaries
  ln -Ts /usr/share/hyphen "$pkgdir"/opt/$_pkgname/hyphenation

  # Use system certificates
  ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/$_pkgname/libnssckbi.so

  # Disable update checks (managed by pacman)
  mkdir "$pkgdir"/opt/$_pkgname/distribution
  install -m644 "$srcdir"/policies.json "$pkgdir"/opt/$_pkgname/distribution/
}
sha256sums=('c0c1c769c4d0f725a340d567021bb81170a30417aae31af632c62320bcf22f1e'
            '67bd4db8eb21be88d80dc0df8cdabbea59295784c2614157e963162504324053'
            '6e1e97053fa272ad282428cf05b8cde07842353e8dfff7210c91c74842a3e71e')
sha256sums_x86_64=('5e4dba1a146abd7d9756d9d2cb45b3314d118133ac6ececb58b715c8dcafc971')