mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-25 13:00:42 +00:00
f353eac054
* Create lightly-qt6.spec
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Create add-missing-files.patch for lightly-qt6
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Create anda.hcl for lightly-qt6
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Create update.rhai for lightly-qt6
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Create VER6.txt
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
---------
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
(cherry picked from commit 46cbb7c0e8)
Co-authored-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
8 lines
528 B
Plaintext
8 lines
528 B
Plaintext
let repos = get("https://repology.org/api/v1/project/qt").json_arr();
|
|
let branch = sh("git rev-parse --abbrev-ref HEAD", #{"stdout": "piped"}).ctx.stdout;
|
|
branch.crop(1);
|
|
branch.trim();
|
|
let vers = repos.filter(|r| r.repo == `fedora_${branch}`).map(|r| [find("^(\\d+)\\.(\\d+)\\..+$", r.version, 1), find("^(\\d+)\\.(\\d+)\\..+$", r.version, 2)]);
|
|
let ver = vers.find(|v| v[0] == "6")[1]; // assume there is only 1 package for v6.x
|
|
open_file("anda/themes/lightly-qt6/VER6.txt").write(`${ver}`); // will trig rebuild when changed
|