summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD58
2 files changed, 44 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2e0796ab6662..cbd3347a72aa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sun May 1 18:48:06 UTC 2016
+# Sat Jun 4 17:07:49 UTC 2016
pkgbase = firefox-nightly
pkgdesc = Standalone web browser from mozilla.org, nightly build
- pkgver = 49.0a1.20160501
+ pkgver = 49.0a1.20160604
pkgrel = 1
url = http://www.mozilla.org/projects/firefox
arch = i686
@@ -22,17 +22,17 @@ pkgbase = firefox-nightly
source = firefox-nightly.desktop
source = firefox-nightly-safe.desktop
source = vendor.js
+ source = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-.tar.bz2
+ source = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-.txt
+ source = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-.checksums
+ source = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-.checksums.asc
sha512sums = 2d8feaf128775efbab958e2614613cd45a7a172a3c687b6af054d61eabd3592cf1dd1c85ca92bff82834f43eb7ebedeb4f8c2fe6f116b6a22eb14a7ff98a1f25
sha512sums = 88510ea986776bb8ed9fc8c1217728f8cf0f8b3a8aa4dbc07608e7b2803cd13dcb6809363208fd9531ccee5a9ba2cee39af498a1279d3e1268511982ecb559ec
sha512sums = bae5a952d9b92e7a0ccc82f2caac3578e0368ea6676f0a4bc69d3ce276ef4f70802888f882dda53f9eb8e52911fb31e09ef497188bcd630762e1c0f5293cc010
- source_i686 = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-i686.tar.bz2
- source_i686 = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-i686.txt
- sha512sums_i686 = a574e95ce484fe52086e230ee0f654930028d829e75f42b421f0069c28548a62b5714b5a72b394322c78081c0939ab492cdf641d4825e12f52a504d1747d9194
- sha512sums_i686 = SKIP
- source_x86_64 = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-x86_64.tar.bz2
- source_x86_64 = https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-49.0a1.en-US.linux-x86_64.txt
- sha512sums_x86_64 = 6139d547cfe654f15639855bd1fc88d73ae48be79031caac5698fc46863ff5aa9f96a352dfd4449d8bfeda438143c00650cfb15e8179adc8491f9bdc49696ffc
- sha512sums_x86_64 = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
pkgname = firefox-nightly
diff --git a/PKGBUILD b/PKGBUILD
index aedbf96ccaf9..8d817a9f2524 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,50 +1,59 @@
# Maintainer: Cedric MATHIEU <me.xenom @ gmail.com>
+# Contributor: di72nn <di72nn @ gmail.com>
# Contributor : Det <nimetonmaili @ gmail.com>
# Contributor: coderoar <coderoar @ gmail.com>
# Contributor: kang <kang @ mozilla.com>
# Contributor: John Reese <jreese @ noswap.com>
+# Before you complain about unverifiable signature, please read Allan's post:
+# http://allanmcrae.com/2015/01/two-pgp-keyrings-for-package-management-in-arch-linux/
+# TL;DR: gpg --keyserver pgp.mit.edu --recv-keys 14F26682D0916CDD81E37B6D61B7B526D98F0353
+
_name=firefox
_channel=nightly
pkgname="${_name}-${_channel}"
pkgname=firefox-nightly
pkgdesc='Standalone web browser from mozilla.org, nightly build'
url='http://www.mozilla.org/projects/firefox'
-pkgver=49.0a1.20160501
+pkgver=49.0a1.20160604
_version=49.0a1
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
_file="${_name}-${_version}.en-US.linux"
_srcurl="https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central"
-source=('firefox-nightly.desktop' 'firefox-nightly-safe.desktop' 'vendor.js')
-source_i686=("${_srcurl}/${_file}-i686.tar.bz2" "${_srcurl}/${_file}-i686.txt")
-source_x86_64=("${_srcurl}/${_file}-x86_64.tar.bz2" "${_srcurl}/${_file}-x86_64.txt")
-_srcsum_i686="$(curl -s "${_srcurl}/${_file}-i686.checksums" | grep "${_file}-i686.tar.bz2" | grep sha512 | cut -d " " -f1)"
-_srcsum_x86_64="$(curl -s "${_srcurl}/${_file}-x86_64.checksums" | grep "${_file}-x86_64.tar.bz2" | grep sha512 | cut -d " " -f1)"
-sha512sums=('2d8feaf128775efbab958e2614613cd45a7a172a3c687b6af054d61eabd3592cf1dd1c85ca92bff82834f43eb7ebedeb4f8c2fe6f116b6a22eb14a7ff98a1f25' '88510ea986776bb8ed9fc8c1217728f8cf0f8b3a8aa4dbc07608e7b2803cd13dcb6809363208fd9531ccee5a9ba2cee39af498a1279d3e1268511982ecb559ec' 'bae5a952d9b92e7a0ccc82f2caac3578e0368ea6676f0a4bc69d3ce276ef4f70802888f882dda53f9eb8e52911fb31e09ef497188bcd630762e1c0f5293cc010')
-sha512sums_i686=("${_srcsum_i686}" 'SKIP')
-sha512sums_x86_64=("${_srcsum_x86_64}" 'SKIP')
+source=(
+ 'firefox-nightly.desktop' 'firefox-nightly-safe.desktop' 'vendor.js'
+ "${_srcurl}/${_file}-${CARCH}.tar.bz2" "${_srcurl}/${_file}-${CARCH}.txt"
+ "${_srcurl}/${_file}-${CARCH}.checksums"{,.asc})
+sha512sums=(
+ '2d8feaf128775efbab958e2614613cd45a7a172a3c687b6af054d61eabd3592cf1dd1c85ca92bff82834f43eb7ebedeb4f8c2fe6f116b6a22eb14a7ff98a1f25'
+ '88510ea986776bb8ed9fc8c1217728f8cf0f8b3a8aa4dbc07608e7b2803cd13dcb6809363208fd9531ccee5a9ba2cee39af498a1279d3e1268511982ecb559ec'
+ 'bae5a952d9b92e7a0ccc82f2caac3578e0368ea6676f0a4bc69d3ce276ef4f70802888f882dda53f9eb8e52911fb31e09ef497188bcd630762e1c0f5293cc010'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
+validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353')
depends=('alsa-lib' 'libxt' 'libnotify' 'mime-types' 'nss' 'gtk2' 'gtk3' 'sqlite' 'dbus-glib')
+prepare() {
+ grep -e "${_file}-${CARCH}.tar.bz2" -e "${_file}-${CARCH}.txt" "${srcdir}/${_file}-${CARCH}.checksums" \
+ | grep " sha512 " | cut -d " " -f1,4 > "${srcdir}/checksums"
+
+ msg 'Verifying checksums...'
+ if [ ! "$(wc -l <"${srcdir}/checksums")" -eq '2' ]; then
+ error 'Wrong number of lines in a checksums file'
+ exit 1
+ fi
+ sha512sum -c --strict "${srcdir}/checksums"
+}
+
pkgver() {
- echo "${_version}.$(date +%Y%m%d)"
+ echo "${_version}.$(head -n1 "${srcdir}/${_file}-${CARCH}.txt" | cut -c-8)"
}
package() {
-
- # uncomment these lines to enable GnuPG signature verification. You'll need Firefox's GnuPG release key.
- # Their current fingerprint (2015-07-17) is 14F2 6682 D091 6CDD 81E3 7B6D 61B7 B526 D98F 0353
- #msg "Verifying GnuPG signature..."
- # Add your architecture here (i686 or x86_64)
- #CARCH=
- #FX_GPG="${_file}-${CARCH}.checksums.asc"
- #FX_GPG_URI="${_srcurl}/${FX_GPG}"
- #FX_CHKSUM_URI="${_srcurl}/${_file}-${CARCH}.checksums"
- #curl -OR ${FX_CHKSUM_URI}
- #curl -OR ${FX_GPG_URI}
- #gpg --verify ${FX_GPG}
-
# uncomment this line to remove these
# rm -rf firefox/{extensions,plugins,searchplugins}
install -d "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt}
@@ -55,3 +64,4 @@ package() {
install -m644 "${srcdir}/firefox/browser/icons/mozicon128.png" "${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png"
install -Dm644 "${srcdir}/vendor.js" "${pkgdir}/opt/firefox-${_version}/browser/defaults/preferences/vendor.js"
}
+