Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add date versioning to firefox-nightly

  • Loading branch information...
commit 8a44ff3776a3692e3496161c8f76e045308a17ed 1 parent 32d050b
@jreese authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 firefox-nightly/PKGBUILD
View
9 firefox-nightly/PKGBUILD
@@ -2,6 +2,7 @@
# Contributor : Det <nimetonmaili @ gmail.com>
# Contributor: coderoar <coderoar @ gmail.com>
# Contributor: kang <kang @ mozilla.com>
+# Contributor: John Reese <jreese @ noswap.com>
_name=firefox
_channel=nightly
@@ -16,11 +17,15 @@ arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
_file="${_name}-${_version}.en-US.linux-${CARCH}"
_srcurl="https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk"
-source=("${_srcurl}/${_file}.tar.bz2" 'firefox-nightly.desktop' 'firefox-nightly-safe.desktop')
+source=("${_srcurl}/${_file}.tar.bz2" "${_srcurl}/${_file}.txt" 'firefox-nightly.desktop' 'firefox-nightly-safe.desktop')
_srcsum="$(curl -vs "${_srcurl}/${_file}.checksums" 2>&1 | grep bz | grep sha512 | cut -d " " -f1)"
-sha512sums=("${_srcsum}" 'd2d836b07288d2a13d01d668399df8a2a15884a58a7051303938bf74a30bdfc23a8bc57395494345727ae24e1dd9cab09c67a640a5c9e7a8df895f987e009dcd' '00caf982c072c7499433c494ecf2096542c4ddf368c4b97fb22672fd669683911d009a65a498b8a03da61ae9aa5a4e8bdaa6e58b148c2a5d7c008910b2af26a5')
+sha512sums=("${_srcsum}" 'SKIP' 'd2d836b07288d2a13d01d668399df8a2a15884a58a7051303938bf74a30bdfc23a8bc57395494345727ae24e1dd9cab09c67a640a5c9e7a8df895f987e009dcd' '00caf982c072c7499433c494ecf2096542c4ddf368c4b97fb22672fd669683911d009a65a498b8a03da61ae9aa5a4e8bdaa6e58b148c2a5d7c008910b2af26a5')
depends=('alsa-lib' 'libxt' 'libnotify' 'mime-types' 'nss' 'gtk2' 'sqlite' 'dbus-glib')
+pkgver() {
+ echo "${_version}.$(head -n1 ${_file}.txt | cut -c -8)"
+}
+
package() {
# uncomment these lines to enable GnuPG signature verification. You'll need Firefox's GnuPG release key.
Please sign in to comment.
Something went wrong with that request. Please try again.