summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2016-05-12 01:15:49 +0200
committerXZS2016-05-12 01:15:49 +0200
commit4cf215b0ae675e14bc64105a4396cd55c02ba95b (patch)
tree6092551a2d25476c7447f091b34b5e08f6a0e7a5
parent3611375172260806aa4cf653ab9e74703908cf57 (diff)
downloadaur-4cf215b0ae675e14bc64105a4396cd55c02ba95b.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 3c72945b6013..d88fd8d5091f 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)