diff options
author | XZS | 2016-05-11 22:20:15 +0200 |
---|---|---|
committer | XZS | 2016-05-12 01:05:22 +0200 |
commit | d514088aff54fe53be8630f0212fb5c5cc3ec9d9 (patch) | |
tree | 73047eb979aa1def33236ca7d73358d1bb34d77a | |
parent | f1eb3f496decb9fb1573f50dd62c5ddebfc66037 (diff) | |
download | aur-d514088aff54fe53be8630f0212fb5c5cc3ec9d9.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-theme-ft-deepdark depends = firefox noextract = firefox-theme-ft-deepdark.zip source = firefox-theme-ft-deepdark.zip::https://addons.mozilla.org/firefox/downloads/latest/ft-deepdark/platform:2/ - source = .version::https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/ft-deepdark + source = .version::https://services.addons.mozilla.org/firefox/api/1.5/addon/ft-deepdark md5sums = 6bd4cf826aae34f9fbcce6a2949ddf29 md5sums = SKIP @@ -13,8 +13,8 @@ md5sums=('6bd4cf826aae34f9fbcce6a2949ddf29') [ "$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") |