From cc0903e50e0f59644e3837155000d38c69d5b215 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 14 Sep 2025 15:26:42 +0800 Subject: add nvchecker --- stardict-wikt-en-all/.gitignore | 1 + stardict-wikt-en-all/.nvchecker.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 stardict-wikt-en-all/.nvchecker.toml diff --git a/stardict-wikt-en-all/.gitignore b/stardict-wikt-en-all/.gitignore index 018a3de..218cc90 100644 --- a/stardict-wikt-en-all/.gitignore +++ b/stardict-wikt-en-all/.gitignore @@ -2,3 +2,4 @@ !PKGBUILD !.SRCINFO !.gitignore +!.nvchecker.toml diff --git a/stardict-wikt-en-all/.nvchecker.toml b/stardict-wikt-en-all/.nvchecker.toml new file mode 100644 index 0000000..4952c19 --- /dev/null +++ b/stardict-wikt-en-all/.nvchecker.toml @@ -0,0 +1,12 @@ +[stardict-wikt-en-all] +source = 'regex' +url = 'https://www.dictinfo.com/' +# Not sure why but test shows if use sth. like \., must use single quote ' +# instead of double quote ", else error: "jq: parse error: Invalid literal at +# line 1, column 7"; if want to use double quote ", must use sth. like \\. +regex = 'stardict/wikt-en-ALL-([0-9]+-[0-9]+-[0-9]+)\.7z' +# convert the version name from sth. like 2024-10-05 to 2024_10_05 to match +# PKGBUILD version name, so `pkgctl version upgrade` can correctly upgrade +# PKGBUILD version +from_pattern = '-' +to_pattern = '_' -- cgit v1.2.3-70-g09d2