summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2016-05-12 01:15:43 +0200
committerXZS2016-05-12 01:15:43 +0200
commit27acf52cef09f70dd8cb352a7d60087fe59bfb3f (patch)
tree72fdeb270eca1861d3d4cbc19a2c53fa20015e7a
parent5e1f8902c0513b0e5f299ff31fd88a5c91a11736 (diff)
downloadaur-27acf52cef09f70dd8cb352a7d60087fe59bfb3f.tar.gz
derive URL from extension name
In the absence of a dedicated web page, the description page for the Add-On follows a similar naming scheme as the download link and can be automatically composed, too. Conditionally doing so when no explicit $url is set, eases transition should the extension be forked, switch maintainers or otherwise change in a way that the description page on addons.mozilla.org is more accurate than the current page.
-rw-r--r--PKGBUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ff1c9e2822cc..7c21d3649975 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,6 +16,7 @@ source+=(
"${pkgname}.zip::https://addons.mozilla.org/firefox/downloads/latest/${_extname=${pkgname#*-*-}}/platform:2/"
".version::https://services.addons.mozilla.org/firefox/api/1.5/addon/$_extname"
)
+[ ${url++} ] || url="https://addons.mozilla.org/${pkgname%%-*}/addon/$_extname/"
md5sums+=('SKIP')
noextract+=("${pkgname}.zip")
makedepends+=(unzip)