internal/rosa: use string pair for files

This is a much cleaner representation than the separator syntax.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-21 14:07:20 +09:00
parent 497e4a5642
commit 443a7a30f6
5 changed files with 28 additions and 27 deletions

View File

@@ -10,10 +10,10 @@ package glib {
checksum = "Rkszn6W4RHjyspyqfXdVAVawdwDJCuS0Zu0f7qot7tbJhnw2fUDoUUJB40m-1MCX";
};
files = [
"/etc/machine-id:stub-machine-id-fhs",
"/system/var/lib/dbus/machine-id:stub-machine-id",
];
files = {
"/etc/machine-id": "stub-machine-id-fhs";
"/system/var/lib/dbus/machine-id": "stub-machine-id";
};
exec = meson {
setup = {

View File

@@ -17,10 +17,10 @@ package kernel-headers {
source = kernel-source;
files = [
files = {
// updated manually for API changes
"version.h",
];
"version.h";
};
toyboxEarly = true;
exec = make {
@@ -61,16 +61,16 @@ package kernel {
"f54a91f5337cd918eb86cf600320d25b6cfd8209.patch",
"6ce6fbfddc5b127e4f57c3b5bfdcf40239a4fc2f.patch",
];
files = [
arch {
amd64 = ".config:kernel_amd64.config";
arm64 = ".config:kernel_arm64.config";
riscv64 = ".config:kernel_riscv64.config";
},
files = {
".config": arch {
amd64 = "kernel_amd64.config";
arm64 = "kernel_arm64.config";
riscv64 = "kernel_riscv64.config";
};
".installkernel:installkernel",
".depmod:depmod",
];
".installkernel": "installkernel";
".depmod": "depmod";
};
env = [
"PATH=/system/sbin",

View File

@@ -10,7 +10,7 @@ package libarchive {
checksum = "CUJK4MDQmZmATClgQBH2Wt-7Ts4iiSUlg1J_TVb6-5IK3rVUgVLIMc5k-bnWB9w3";
};
files = [ "CTestCustom.cmake" ];
files = { "CTestCustom.cmake"; };
writable = true;
early = "\ninstall -Dv /usr/src/CTestCustom.cmake /cure/\n";