diff options
author | XZS | 2016-05-11 22:19:44 +0200 |
---|---|---|
committer | XZS | 2016-05-12 01:05:23 +0200 |
commit | 9bd08bf848aab47f4cd4e2b096ff14065fffd695 (patch) | |
tree | a13620c10dec4be47262fca00bb73377392525cb | |
parent | 449a597354a9c12563e7b0173fbb0eda9c4fe190 (diff) | |
download | aur-9bd08bf848aab47f4cd4e2b096ff14065fffd695.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 = thunderbird-theme-tt-deepdark depends = thunderbird noextract = thunderbird-theme-tt-deepdark.zip source = thunderbird-theme-tt-deepdark.zip::https://addons.mozilla.org/firefox/downloads/latest/tt-deepdark/platform:2/ - source = .version::https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/tt-deepdark + source = .version::https://services.addons.mozilla.org/firefox/api/1.5/addon/tt-deepdark md5sums = ab004efa182865052f073d26ac10593e md5sums = SKIP @@ -13,8 +13,8 @@ md5sums=('ab004efa182865052f073d26ac10593e') [ "$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") |