summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2016-05-11 22:19:44 +0200
committerXZS2016-05-12 01:05:23 +0200
commit9bd08bf848aab47f4cd4e2b096ff14065fffd695 (patch)
treea13620c10dec4be47262fca00bb73377392525cb
parent449a597354a9c12563e7b0173fbb0eda9c4fe190 (diff)
downloadaur-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--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ef47ff63daf4..31a2d0d9a496 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 325d5b1fa153..18ebda502a36 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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")