diff options
author | XZS | 2016-05-11 22:20:33 +0200 |
---|---|---|
committer | XZS | 2016-05-12 01:05:22 +0200 |
commit | 5e1f8902c0513b0e5f299ff31fd88a5c91a11736 (patch) | |
tree | a85a5fb5eb42ff5a617933cf3a70f97b415bbbae | |
parent | c9374f516e47a2255ac67c7c5cf76f3106d1d742 (diff) | |
download | aur-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-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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") |