· 7 years ago · Apr 12, 2019, 08:52 PM
1# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani@gmail.com>
2# Contributor: Cedric MATHIEU <me.xenom @ gmail.com>
3
4_name=firefox
5_channel=git
6_lang=en-US
7pkgname=${_name}-${_channel}
8pkgdesc="Standalone Web Browser from Mozilla — Nightly build (${_lang})"
9url="https://www.mozilla.org/${_lang}/${_name}/${_channel}"
10_version=20190412
11pkgver=20190412
12pkgrel=1
13arch=('x86_64')
14license=('MPL' 'GPL' 'LGPL')
15depends=('dbus-glib' 'gtk3' 'libxt' 'nss' 'mime-types')
16optdepends=('pulseaudio: audio support'
17 'ffmpeg: h.264 video'
18 'hunspell: spell checking'
19 'hyphen: hyphenation'
20 'libnotify: notification integration'
21 'networkmanager: location detection via available WiFi networks'
22 'speech-dispatcher: text-to-speech'
23 'startup-notification: support for FreeDesktop Startup Notification')
24_url="https://github.com/mozilla/gecko-dev"
25_src="${_name}-${_version}.${_lang}.linux"
26_filename="$(date +%Y%m%d)-${_src}"
27source=("firefox-git.desktop" 'policies.json')
28source_x86_64=("git+https://github.com/mozilla/gecko-dev.git")
29sha512sums=('42426e7b510bd88cbf7b246bf66d7768afa5d71389bf15f7a4231dc24f99fd73284dd9a0a8eb4342b42337c2c7dd843e570a93afa7d3b44c97ecbf5e38e433ac'
30 '5ed67bde39175d4d10d50ba5b12063961e725e94948eadb354c0588b30d3f97d2178b66c1af466a6e7bd208ab694227a1391c4141f88d3da1a1178454eba5308')
31sha512sums_i686=('SKIP' 'SKIP' 'SKIP')
32sha512sums_x86_64=('SKIP' 'SKIP' 'SKIP')
33validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla’s GnuPG release key
34
35pkgver() {
36 echo "${_version}.$(head -n1 ${_filename}-${CARCH}.txt | cut -c-8)"
37}
38
39package() {
40 OPT_PATH="opt/${pkgname}"
41
42 # Install the package files
43 install -d "${pkgdir}"/{usr/bin,opt}
44 cp -r ${_name} "${pkgdir}"/${OPT_PATH}
45 ln -s "/${OPT_PATH}/${_name}" "${pkgdir}"/usr/bin/${pkgname}
46
47 # Install .desktop files
48 install -Dm644 "${srcdir}"/firefox-git.desktop -t "${pkgdir}"/usr/share/applications
49
50 # Install icons
51 SRC_LOC="${srcdir}"/${_name}/browser
52 DEST_LOC="${pkgdir}"/usr/share/icons/hicolor
53 for i in 16 32 48 64 128
54 do
55 install -Dm644 "${SRC_LOC}"/chrome/icons/default/default${i}.png "${DEST_LOC}"/${i}x${i}/apps/${pkgname}.png
56 done
57
58 # Disable auto-updates
59 install -Dm644 "${srcdir}"/policies.json -t "${pkgdir}"/${OPT_PATH}/distribution
60
61 # Use system-provided dictionaries
62 rm -rf "${pkgdir}"/${OPT_PATH}/{dictionaries,hyphenation}
63 ln -sf /usr/share/hunspell "${pkgdir}"/${OPT_PATH}/dictionaries
64 ln -sf /usr/share/hyphen "${pkgdir}"/${OPT_PATH}/hyphenation
65}
66sha512sums=('87a101fd820c93b647dc4f98b9e3555e4fe6deeb616499bb5646dc6c0b8a14407d71cd706e3ba9fb05d6b8d32f40a0f207666318530638a6c19607cbc02e4404'
67 '5ed67bde39175d4d10d50ba5b12063961e725e94948eadb354c0588b30d3f97d2178b66c1af466a6e7bd208ab694227a1391c4141f88d3da1a1178454eba5308')
68sha512sums_x86_64=('SKIP')