eza: update to 0.19.2
[void-pkg.git] / common / container / setup.sh
blobf28a2b2073c64a35d9dbd58a86d827e6979903d3
1 #!/bin/sh
3 : "${MIRROR:=https://repo-default.voidlinux.org/}"
5 suffix() {
6 case "${LIBC:?}" in
7 musl) echo "-musl" ;;
8 esac
11 repo() {
12 case "${ARCH:?}" in
13 aarch64*) echo "${MIRROR}/current/aarch64" ;;
14 *-musl) echo "${MIRROR}/current/musl" ;;
15 *) echo "${MIRROR}/current" ;;
16 esac
19 case "${TARGETPLATFORM:?}" in
20 linux/arm/v6) ARCH="armv6l$(suffix)" ;;
21 linux/arm/v7) ARCH="armv7l$(suffix)" ;;
22 linux/arm64) ARCH="aarch64$(suffix)" ;;
23 linux/amd64) ARCH="x86_64$(suffix)" ;;
24 linux/386) ARCH="i686$(suffix)" ;;
25 esac
27 REPO="$(repo)"
29 export ARCH REPO