# Maintainer @fhdk # Based on PKGBUILD: # * `firefox-developer` # * `firefox-developer-es-mx` # * `firefox-developer-de` # Vigtigt: Det er nødvendigt at importere PGP nøgle for "Mozilla Sofware Releases " # $ gpg --keyserver pgp.mit.edu --recv-keys 14F26682D0916CDD81E37B6D61B7B526D98F0353 _name=firefox _channel=developer _lang=da pkgname="${_name}-${_channel}-${_lang}" pkgdesc="Standalone web browser from mozilla.org, developer build - Danish" url="http://www.mozilla.org/firefox/developer" pkgver=58.0b12 pkgrel=1 arch=('x86_64') license=("MPL" "GPL" "LGPL") _file="${_name}-${pkgver}" _url="https://download-installer.cdn.mozilla.net/pub/devedition/releases/${pkgver}" _loc="linux-${arch}/${_lang}" source=("${_url}/${_loc}/${_file}.tar.bz2" "${_url}/SHA512SUMS" "${_url}/SHA512SUMS.asc" "${_name}-${_channel}.desktop" "vendor.js") sha512sums=('36a70420cfc3f05a5b8bb1b30a300595402462e2f0807a82fcda49a8ccd4e23444c84b6382d6eac1416f545b04fcb978093efa5dfc6872b90a1176c5a37977b6' 'd57f6e4f12ef18dbe6d11866147bff8dab09d8925ed8a7fc37c4508b54aa3c063711a432fcfe7ba103342a1f62f8da6ddabdaa36eb4f3d89732d81c65c87245d' 'SKIP' 'b109b884ed79e9e214541750a0fcac8d7d8891cc7f0e0d472b717a5b71e569ab5852534bceaab045a5b13a9290a7905604d08fe97e28c675a2266c30fe719cb6' 'bae5a952d9b92e7a0ccc82f2caac3578e0368ea6676f0a4bc69d3ce276ef4f70802888f882dda53f9eb8e52911fb31e09ef497188bcd630762e1c0f5293cc010') validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla’s GnuPG release key # Dependencies # https://www.archlinux.org/packages/extra/x86_64/firefox/ depends=('dbus-glib' 'gtk3' 'libxt' 'mime-types' 'nss' 'sqlite') optdepends=( 'alsa-lib: An alternative implementation of Linux sound support' 'ffmpeg: Complete solution to record, convert and stream audio and video' 'gtk2: flash plugin support' 'gtk3-print-backends: Print support' 'hunspell: Spell checking' 'hyphen: Hyphenation' 'libnotify: Notification integration' 'networkmanager: Location detection via available WiFi networks' 'pulseaudio: Audio/video playback' 'speech-dispatcher: Text to Speech' 'startup-notification: Support for FreeDesktop Startup Notification' ) prepare() { msg2 "" msg2 "Husk PGP nøgle for 'Mozilla Sofware Releases' " msg2 "\$ gpg --keyserver pgp.mit.edu --recv-keys D98F0353" # Check if hash of the source archive matches the one provided by Mozilla (which was signed with GPG). _checksum=`grep "linux-x86_64/$_lang/firefox-$pkgver.tar.bz2" $srcdir/SHA512SUMS | cut -f1 -d " "` _actual=`sha512sum $srcdir/firefox-$pkgver.tar.bz2 | cut -f1 -d " "` msg2 "Checking integrity of firefox-$pkgver.tar.bz2" if [[ $_checksum == $_actual ]]; then msg2 "Integrity verified successfully." else msg2 "Integrity verification failed!" exit 1 fi } package() { opt_path="opt/${pkgname}" # install binaries install -d $pkgdir/{usr/{bin,share/{applications,pixmaps}},opt} cp -r firefox $pkgdir/${opt_path} # symlink binary ln -s /${opt_path}/firefox $pkgdir/usr/bin/$_name-$_channel # install icon install -m644 $srcdir/firefox/browser/icons/mozicon128.png $pkgdir/usr/share/pixmaps/$_name-${_channel}-icon.png # install desktop file install -m644 $srcdir/$_name-$_channel.desktop $pkgdir/usr/share/applications/ # install vendor.js file install -Dm644 $srcdir/vendor.js $pkgdir/opt/$_name-$_channel/browser/defaults/preferences/vendor.js }