summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2016-05-11 22:20:33 +0200
committerXZS2016-05-12 01:05:22 +0200
commit5e1f8902c0513b0e5f299ff31fd88a5c91a11736 (patch)
treea85a5fb5eb42ff5a617933cf3a70f97b415bbbae
parentc9374f516e47a2255ac67c7c5cf76f3106d1d742 (diff)
downloadaur-5e1f8902c0513b0e5f299ff31fd88a5c91a11736.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 78c3a3b654e4..c522f0e0d9c5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,7 +10,7 @@ pkgbase = firefox-extension-hide-tab-bar-with-one-tab
depends = firefox
noextract = firefox-extension-hide-tab-bar-with-one-tab.zip
source = firefox-extension-hide-tab-bar-with-one-tab.zip::https://addons.mozilla.org/firefox/downloads/latest/hide-tab-bar-with-one-tab/platform:2/
- source = .version::https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/hide-tab-bar-with-one-tab
+ source = .version::https://services.addons.mozilla.org/firefox/api/1.5/addon/hide-tab-bar-with-one-tab
md5sums = 0177f69d998d66a9f181b5744bee21a1
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 535c3dec0b89..ff1c9e2822cc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,8 +13,8 @@ md5sums=('0177f69d998d66a9f181b5744bee21a1')
[ "$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")