mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-14 23:50:38 +00:00
156d6e82f1
* feat: Add sc0710 kmod
* fix: Correct provides in xpadneo-kmod spec file
(cherry picked from commit 8d2c63d87c)
Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch>
13 lines
602 B
Plaintext
13 lines
602 B
Plaintext
let c = sh("cat anda/system/sc0710/kmod-common/sc0710.spec | grep '%global commit ' | sed -E 's/.+commit //'", #{"stdout": "piped"}).ctx.stdout;
|
|
c.pop();
|
|
rpm.global("commit", c);
|
|
if rpm.changed() {
|
|
rpm.release();
|
|
let d = sh("cat anda/system/sc0710/kmod-common/sc0710.spec | grep '%global commitdate' | sed -E 's/.+commitdate //'", #{"stdout": "piped"}).ctx.stdout;
|
|
d.pop();
|
|
rpm.global("commitdate", d);
|
|
let v = sh("cat anda/system/sc0710/kmod-common/sc0710.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
|
|
v.pop();
|
|
rpm.global("ver", v);
|
|
}
|