core_utils-9.4.0.toml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # 用户程序名称
  2. name = "core utils"
  3. # 版本号
  4. version = "9.4.0"
  5. # 用户程序描述信息
  6. description = "GNU Core utils"
  7. # (可选)是否只构建一次,如果为true,DADK会在构建成功后,将构建结果缓存起来,下次构建时,直接使用缓存的构建结果
  8. build-once = true
  9. # (可选) 是否只安装一次,如果为true,DADK会在安装成功后,不再重复安装
  10. install-once = true
  11. # 目标架构
  12. # 可选值:"x86_64", "aarch64", "riscv64"
  13. target-arch = ["x86_64"]
  14. # 任务源
  15. [task-source]
  16. # 构建类型
  17. # 可选值:"build-from-source", "install-from-prebuilt"
  18. type = "build-from-source"
  19. # 构建来源
  20. # "build_from_source" 可选值:"git", "local", "archive"
  21. # "install_from_prebuilt" 可选值:"local", "archive"
  22. source = "archive"
  23. # 路径或URL
  24. source-path = "https://mirrors.dragonos.org.cn/pub/third_party/gnu/coreutils/coreutils-9.4.tar.xz"
  25. # 把压缩包中的哪个目录作为根目录(可选),仅当 source = "archive" 时生效
  26. archive-rootdir = "coreutils-9.4"
  27. # 构建相关信息
  28. [build]
  29. # (可选)构建命令
  30. build-command = "./configure CC=x86_64-linux-musl-gcc CFLAGS=-static && make -j $(nproc) && DESTDIR=$DADK_CURRENT_BUILD_DIR make install"
  31. # 安装相关信息
  32. [install]
  33. # (可选)安装到DragonOS的路径
  34. in-dragonos-path = "/"
  35. # 清除相关信息
  36. [clean]
  37. # (可选)清除命令
  38. clean-command = "make clean"
  39. # (可选)依赖项
  40. # 注意:如果没有依赖项,忽略此项,不允许只留一个[[depends]]
  41. # 此处无依赖项,故忽略