summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2016-05-11 22:20:36 +0200
committerXZS2016-05-12 01:05:21 +0200
commit3611375172260806aa4cf653ab9e74703908cf57 (patch)
tree09605d3e6a63a63b07eb3d6e3de5617237fc4c86
parent98c8205c8da97b5829ff6dd38196618f8b4fd1b3 (diff)
downloadaur-3611375172260806aa4cf653ab9e74703908cf57.tar.gz
allow extension name override
The advertised title of some extensions differs from the name used in the URL of their page on addons.mozilla.org. Overwriting it allows usage of the template nonetheless.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cccfa0f249de..85ac28d065ae 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,7 +10,7 @@ pkgbase = firefox-extension-flash-video-downloader
depends = firefox
noextract = firefox-extension-flash-video-downloader.zip
source = firefox-extension-flash-video-downloader.zip::https://addons.mozilla.org/firefox/downloads/latest/flash-video-downloader/platform:2/
- source = .version::https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/flash-video-downloader
+ source = .version::https://services.addons.mozilla.org/firefox/api/1.5/addon/flash-video-downloader
md5sums = 3ddd367852b900cd472f2d6c358b9073
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index d2c024384918..3c72945b6013 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,8 +13,8 @@ md5sums=('3ddd367852b900cd472f2d6c358b9073')
[ "$arch" ] || arch=('any')
source+=(
- "${pkgname}.zip::https://addons.mozilla.org/firefox/downloads/latest/${pkgname#*-*-}/platform:2/"
- ".version::https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/${pkgname#*-*-}"
+ "${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"
)
md5sums+=('SKIP')
noextract+=("${pkgname}.zip")