Skip to content

Commit

Permalink
saner
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Jan 21, 2025
1 parent 644dcd2 commit 368535a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/runner/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ sbuild_builder()
else
#Get URlS
if [[ "${EXCLUDE_CACHED}" == "YES" ]]; then
curl -qfsSL "https://raw.githubusercontent.com/pkgforge/metadata/refs/heads/main/soarpkgs/data/DIFF_${PKG_REPO}_${HOST_TRIPLET}.json" -o "${SYSTMP}/pkgforge/DIFF.json.tmp"
curl -qfsSL "https://raw.githubusercontent.com/pkgforge/${PKG_REPO}/refs/heads/main/SBUILD_LIST.json" -o "${SYSTMP}/pkgforge/SBUILD_LIST.json.tmp"
echo -e "[+] Excluding Cached"
curl -w "(Diff) <== %{url}\n" -qfsSL "https://raw.githubusercontent.com/pkgforge/metadata/refs/heads/main/soarpkgs/data/DIFF_${PKG_REPO}_${HOST_TRIPLET}.json" -o "${SYSTMP}/pkgforge/DIFF.json.tmp"
curl -w "(List) <== %{url}\n" -qfsSL "https://raw.githubusercontent.com/pkgforge/${PKG_REPO}/refs/heads/main/SBUILD_LIST.json" -o "${SYSTMP}/pkgforge/SBUILD_LIST.json.tmp"
jq -n --slurpfile a "${SYSTMP}/pkgforge/DIFF.json.tmp" --slurpfile b "${SYSTMP}/pkgforge/SBUILD_LIST.json.tmp" \
'
[$b[] | .[] as $objB |
Expand All @@ -206,7 +207,8 @@ sbuild_builder()
] | unique_by(.ghcr_pkg) | sort_by(.pkg_family)
' | jq . > "${SYSTMP}/pkgforge/SBUILD_LIST.json"
else
curl -qfsSL "https://raw.githubusercontent.com/pkgforge/${PKG_REPO}/refs/heads/main/SBUILD_LIST.json" -o "${SYSTMP}/pkgforge/SBUILD_LIST.json"
echo -e "[+] Including Cached"
curl -w "(List) <== %{url}\n" -qfsSL "https://raw.githubusercontent.com/pkgforge/${PKG_REPO}/refs/heads/main/SBUILD_LIST.json" -o "${SYSTMP}/pkgforge/SBUILD_LIST.json"
fi
jq -r '.[] | select(._disabled == false) | .build_script' "${SYSTMP}/pkgforge/SBUILD_LIST.json" | sort -u -o "${SYSTMP}/pkgforge/SBUILD_URLS"
sed 's|https://github.com/pkgforge/soarpkgs/blob/main/packages|https://raw.githubusercontent.com/pkgforge/soarpkgs/refs/heads/main/packages|g' -i "${SYSTMP}/pkgforge/SBUILD_URLS"
Expand Down

0 comments on commit 368535a

Please sign in to comment.