mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* New update scripts
* Add missing semicolons
(cherry picked from commit b535009b6e)
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
import "andax/bump_extras.rhai" as bump;
|
||||
let c = sh("cat anda/system/xone/kmod-common/xone-kmod-common.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/xone/kmod-common/xone-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
d.pop();
|
||||
rpm.global("date", d);
|
||||
let v = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
v.pop();
|
||||
rpm.global("ver", v);
|
||||
}
|
||||
|
||||
rpm.version(bump::madoguchi("xone-kmod-common", labels.branch));
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
%global real_name xone
|
||||
|
||||
Name: %{real_name}-kmod
|
||||
Version: 0.3^20241223git.6b9d59a
|
||||
Version: %{ver}^%{date}git.%{shortcommit}
|
||||
Release: 1%?dist
|
||||
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories
|
||||
License: GPL-2.0-or-later
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
%global dkms_name xone
|
||||
|
||||
Name: dkms-%{dkms_name}
|
||||
Version: 0.3^20241223git.6b9d59a
|
||||
Version: %{ver}^%{date}git.%{shortcommit}
|
||||
Release: 1%?dist
|
||||
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories
|
||||
License: GPL-2.0-or-later
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
import "andax/bump_extras.rhai" as bump;
|
||||
let c = sh("cat anda/system/xone/kmod-common/xone-kmod-common.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/xone/kmod-common/xone-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
d.pop();
|
||||
rpm.global("date", d);
|
||||
let v = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
v.pop();
|
||||
rpm.global("ver", v);
|
||||
}
|
||||
|
||||
rpm.version(bump::madoguchi("xone-kmod-common", labels.branch));
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
import "andax/bump_extras.rhai" as bump;
|
||||
let c = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.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/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
d.pop();
|
||||
rpm.global("date", d);
|
||||
let v = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
v.pop();
|
||||
rpm.global("ver", v);
|
||||
}
|
||||
|
||||
rpm.version(bump::madoguchi("xpadneo-kmod-common", labels.branch));
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
%global real_name xpadneo
|
||||
|
||||
Name: %{real_name}-kmod
|
||||
Version: 0.9.7^20241224git.8d20a23
|
||||
Version: %{ver}^%{date}git.%{shortcommit}
|
||||
Release: 1%?dist
|
||||
Summary: Advanced Linux Driver for Xbox One Wireless Gamepad
|
||||
License: GPL-3.0
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
%global dkms_name xpadneo
|
||||
|
||||
Name: dkms-%{dkms_name}
|
||||
Version: 0.9.7^20241224git.8d20a23
|
||||
Version: %{ver}^%{date}git.%{shortcommit}
|
||||
Release: 1%?dist
|
||||
Summary: Advanced Linux Driver for Xbox One Wireless Gamepad
|
||||
License: GPL-3.0
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
import "andax/bump_extras.rhai" as bump;
|
||||
let c = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.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/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
d.pop();
|
||||
rpm.global("date", d);
|
||||
let v = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
|
||||
v.pop();
|
||||
rpm.global("ver", v);
|
||||
}
|
||||
|
||||
rpm.version(bump::madoguchi("xpadneo-kmod-common", labels.branch));
|
||||
|
||||
Reference in New Issue
Block a user