summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcameel2022-12-11 22:32:13 +0100
committercameel2022-12-11 22:32:13 +0100
commitf6d050397ba9f624331b308a9d893541d663a426 (patch)
tree63b485692f2969c01f72d94fe72d323f17d0f965
parenta28b5d6554836bee4c581901101ecd8c0803cd2e (diff)
downloadaur-firefox-extension-yomichan.tar.gz
Update PKGBUILD for new URL structure and bump version to 22.10.23.20 and
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD17
2 files changed, 12 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9126e4341f69..3aaf3e4f5586 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = firefox-extension-yomichan
pkgdesc = Firefox extension that provides a Japanese dictionary with Anki integration
- pkgver = 21.8.31.1
+ pkgver = 22.10.23.0
pkgrel = 1
url = https://foosoft.net/projects/yomichan/
arch = any
license = GPL3
depends = firefox
- noextract = yomichan-21.8.31.1-an+fx.xpi
- source = https://addons.cdn.mozilla.net/user-media/addons/789636/yomichan-21.8.31.1-an+fx.xpi
- sha256sums = 92120d19defc3d767d680f2069db18711b942ee3b2568f1fab096a04a705996b
+ noextract = yomichan.xpi
+ source = yomichan.xpi::https://addons.mozilla.org/firefox/downloads/file/4026607
+ sha256sums = d8a6118d3a55bdb24886b9e33c6d44742143574c4f678ca97ab118ec79701a1b
pkgname = firefox-extension-yomichan
diff --git a/PKGBUILD b/PKGBUILD
index d8c5754a385f..12dbef8e360d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,23 @@
# Maintainer: Kamil Śliwak <cameel2@gmail.com>
_addon_name=yomichan
-_addon_version=21.8.31.1
-_addon_id=789636
-_addon_filename="${_addon_name}-${_addon_version}-an+fx.xpi"
+_addon_version=22.10.23.0
+_file_id=4026607
_gecko_id="alex@foosoft.net"
-pkgname=firefox-extension-${_addon_name}
-pkgver=${_addon_version}
+pkgname="firefox-extension-${_addon_name}"
+pkgver="${_addon_version}"
pkgrel=1
pkgdesc="Firefox extension that provides a Japanese dictionary with Anki integration"
arch=('any')
url="https://foosoft.net/projects/yomichan/"
license=('GPL3')
depends=("firefox")
-source=("https://addons.cdn.mozilla.net/user-media/addons/${_addon_id}/${_addon_filename}")
-noextract=("${_addon_filename}")
-sha256sums=('92120d19defc3d767d680f2069db18711b942ee3b2568f1fab096a04a705996b')
+source=("yomichan.xpi::https://addons.mozilla.org/firefox/downloads/file/${_file_id}")
+noextract=(yomichan.xpi)
+sha256sums=('d8a6118d3a55bdb24886b9e33c6d44742143574c4f678ca97ab118ec79701a1b')
package() {
cd "${srcdir}"
- install -Dm644 "${_addon_filename}" "${pkgdir}/usr/lib/firefox/browser/extensions/${_gecko_id}.xpi"
+ install -Dm644 yomichan.xpi "${pkgdir}/usr/lib/firefox/browser/extensions/${_gecko_id}.xpi"
}