Update BSD and pacman recipes using chef DSL

This commit is contained in:
Aoran Zeng
2025-08-10 13:29:11 +08:00
parent 4d10023993
commit a936136d14
6 changed files with 253 additions and 128 deletions

View File

@@ -1,15 +1,34 @@
chef_set_created_on ("2023-09-06");
chef_set_authors ("Heng Guo <2085471348@qq.com>");
chef_set_contributors ("Aoran Zeng <ccmywish@qq.com>");
chef_allow_set();
use_this;
/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* ------------------------------------------------------------*/
/**
* @update 2025-06-20
*/
static Source_t os_msys2_sources[] =
def_target(os_msys2);
void
os_msys2_prelude ()
{
{&UpstreamProvider, NULL, NULL},
use_this(os_msys2);
chef_set_created_on (this, "2023-09-06");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2025-06-20");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Aoran Zeng", "ccmywish@qq.com");
chef_allow_set();
chef_allow_local_mode (this, CanNot, NULL, NULL);
chef_forbid_english(this);
chef_forbid_user_define(this);
def_upstream (NULL);
def_sources_begin()
{&upstream, NULL, DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/msys2", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/msys2", DelegateToMirror},
@@ -20,8 +39,8 @@ static Source_t os_msys2_sources[] =
// {&Netease, "https://mirrors.163.com/msys2", DelegateToMirror},
/* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/msys2", DelegateToMirror}
};
def_sources_n(os_msys2);
def_sources_end()
}
/**
@@ -47,9 +66,5 @@ os_msys2_setsrc (char *option)
chsrc_run (cmd, RunOpt_Default);
chsrc_determine_chgtype (ChgType_Untested);
chsrc_conclude (&source);
}
def_target(os_msys2);