wip: added basic build steps

This commit is contained in:
infinitebash
2024-02-02 16:38:35 -06:00
parent 54af040ba7
commit cf85acf438
3 changed files with 55 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "unl0kr.spec"
}
}
+40
View File
@@ -0,0 +1,40 @@
Name: unl0kr
Version: 2.0.3
Release: %autorelease
Summary: Disk unlocker for the initramfs based on LVGL.
License: GPL-v3.0
URL: https://gitlab.com/postmarketOS/buffybox
BuildRequires: pkgconfig(inih) pkgconfig(libinput) pkgconfig(libudev) pkgconfig(xkbcommon) git
Requires: kernel
%description
%prep
git clone --recursive --shallow-submodules --branch unl0kr-%version %url.git .
%build
%meson/
%meson_build
%install
mv _build/unl0kr %{buildroot}/%{_bindir}/unl0kr
chmod 755 %{buildroot}%{_bindir}/unl0kr
%check
%files
%license COPYING
%doc doc/*
%{buildroot}%{_bindir}/unl0kr
%changelog
* Fri Feb 2 2024 infinitebash <infinitebash@fyralabs.com>
%autochangelog
+10
View File
@@ -0,0 +1,10 @@
let txt = get("https://gitlab.com/api/v4/projects/52322952/repository/tags");
fn get_ver(json) {
for release in json {
if "unl0kr" in release.name {
return release.name.split("-")[1]
}
}
}
let ver = get_ver(txt.json_arr());
rpm.version(ver);