summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2016-05-12 01:14:29 +0200
committerXZS2016-05-12 01:14:29 +0200
commit05e2459ffcf485705212fac588892b00dd6cd550 (patch)
treeabf339dc54512ae49b0b36599dd364f69730d905
parent05f221b330105a7680df83cf9640cec6f00ecd29 (diff)
downloadaur-05e2459ffcf485705212fac588892b00dd6cd550.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 054d9354bfef..559c1ac93bac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,6 +17,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)