mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-24 04:20:46 +00:00
18b350429d
* Create lightly-qt5. spec
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Fix filename & location of lightly-qt5
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Create anda.hcl for lightly-qt5
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Create update.rhai
Signed-off-by: Dipta Biswas <73038615+hazel-bunny@users.noreply.github.com>
* Create VER5.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 f31987fdd1)
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] == "5")[1]; // assume there is only 1 package for v5.x
|
|
open_file("anda/themes/lightly-qt5/VER5.txt").write(`${ver}`); // will trig rebuild when changed
|