mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-06 11:52:17 +00:00
wip: added basic build steps
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "unl0kr.spec"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user