summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyano Hao2017-09-23 09:48:43 +0800
committerCyano Hao2017-09-23 09:48:43 +0800
commit23a8cf0562b514538240243faf825c53e1ee7777 (patch)
tree063a3a26bf80d68403ae01044bca5a827d97eb99
parente63b7f53c069a149a67ee1f3c99101983daa2595 (diff)
downloadaur-23a8cf0562b514538240243faf825c53e1ee7777.tar.gz
fix pkgver
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fa724f29b7a..5a8e55f6e14 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,8 +12,9 @@ url="https://www.mozilla.org/${_lang}/${_name}/${_channel}"
_version=58.0a1
declare -A _build_id
+
_build_id=(
- [id]="$(curl https://ftp.mozilla.org/pub/${_name}/nightly/latest-mozilla-central/${_name}-${_version}.en-US.linux-${CARCH}.txt | head -n1)"
+ [id]="$(curl https://ftp.mozilla.org/pub/${_name}/${_channel}/latest-mozilla-central-l10n/${_name}-${_version}.${_lang}.linux-${CARCH}.checksums | grep -E -o '[[:digit:]]{14}' | sort | tail -n1)"
[year]="${_build_id[id]:0:4}"
[month]="${_build_id[id]:4:2}"
[day]="${_build_id[id]:6:2}"
@@ -40,7 +41,7 @@ optdepends=('pulseaudio: audio support'
'speech-dispatcher: text-to-speech'
'startup-notification: support for FreeDesktop Startup Notification')
-_url="https://ftp.mozilla.org/pub/firefox/nightly/${_build_id[year]}/${_build_id[month]}/${_build_id[year]}-${_build_id[month]}-${_build_id[day]}-${_build_id[hour]}-${_build_id[min]}-${_build_id[sec]}-mozilla-central-l10n"
+_url="https://ftp.mozilla.org/pub/${_name}/${_channel}/${_build_id[year]}/${_build_id[month]}/${_build_id[year]}-${_build_id[month]}-${_build_id[day]}-${_build_id[hour]}-${_build_id[min]}-${_build_id[sec]}-mozilla-central-l10n"
_src="${_name}-${_version}.${_lang}.linux-${CARCH}"
_filename="${_build_id[date]}-${_build_id[time]}-${_src}"
source=('firefox-nightly.desktop'