chore: do not hardcode repository information in `scripts/proporties.sh`
Should have been done during the initial migration to monorepo
This commit is contained in:
parent
0cf739b318
commit
350443bdb6
21
repo.json
21
repo.json
|
@ -1,5 +1,20 @@
|
||||||
{
|
{
|
||||||
"packages": { "name" : "termux-main", "distribution" : "stable" },
|
"packages": {
|
||||||
"root-packages": { "name" : "termux-root", "distribution" : "root" },
|
"name": "termux-main",
|
||||||
"x11-packages": { "name" : "termux-x11", "distribution" : "x11" }
|
"distribution": "stable",
|
||||||
|
"component": "main",
|
||||||
|
"url": "https://packages-cf.termux.dev/apt/termux-main"
|
||||||
|
},
|
||||||
|
"root-packages": {
|
||||||
|
"name": "termux-root",
|
||||||
|
"distribution": "root",
|
||||||
|
"component": "stable",
|
||||||
|
"url": "https://packages-cf.termux.dev/apt/termux-root"
|
||||||
|
},
|
||||||
|
"x11-packages": {
|
||||||
|
"name": "termux-x11",
|
||||||
|
"distribution": "x11",
|
||||||
|
"component": "main",
|
||||||
|
"url": "https://packages-cf.termux.dev/apt/termux-x11"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,23 +43,19 @@ TERMUX_PREFIX="${TERMUX_BASE_DIR}/usr"
|
||||||
TERMUX_REPO_PACKAGE="com.termux"
|
TERMUX_REPO_PACKAGE="com.termux"
|
||||||
|
|
||||||
# Termux repo urls.
|
# Termux repo urls.
|
||||||
TERMUX_REPO_URL=(
|
TERMUX_REPO_URL=()
|
||||||
https://packages-cf.termux.dev/apt/termux-main
|
TERMUX_REPO_DISTRIBUTION=()
|
||||||
https://packages-cf.termux.dev/apt/termux-root
|
TERMUX_REPO_COMPONENT=()
|
||||||
https://packages-cf.termux.dev/apt/termux-x11
|
|
||||||
)
|
|
||||||
|
|
||||||
TERMUX_REPO_DISTRIBUTION=(
|
for url in $(jq -r '.[] | .url' ${TERMUX_SCRIPTDIR}/repo.json); do
|
||||||
stable
|
TERMUX_REPO_URL+=("$url")
|
||||||
root
|
done
|
||||||
x11
|
for distribution in $(jq -r '.[] | .distribution' ${TERMUX_SCRIPTDIR}/repo.json); do
|
||||||
)
|
TERMUX_REPO_DISTRIBUTION+=("$distribution")
|
||||||
|
done
|
||||||
TERMUX_REPO_COMPONENT=(
|
for component in $(jq -r '.[] | .component' ${TERMUX_SCRIPTDIR}/repo.json); do
|
||||||
main
|
TERMUX_REPO_COMPONENT+=("$component")
|
||||||
stable
|
done
|
||||||
main
|
|
||||||
)
|
|
||||||
|
|
||||||
# Allow to override setup.
|
# Allow to override setup.
|
||||||
for f in "${HOME}/.config/termux/termuxrc.sh" "${HOME}/.termux/termuxrc.sh" "${HOME}/.termuxrc"; do
|
for f in "${HOME}/.config/termux/termuxrc.sh" "${HOME}/.termux/termuxrc.sh" "${HOME}/.termuxrc"; do
|
||||||
|
|
Loading…
Reference in New Issue