5 command -v xbps-uhelper
>/dev
/null
&& exit
7 command -v bsdtar
>/dev
/null
&& TAR
=bsdtar
10 URL
="https://repo-ci.voidlinux.org/static/xbps-static-static-${VERSION}.${ARCH}.tar.xz"
15 /bin
/echo -e '\x1b[32mInstalling xbps...\x1b[0m'
16 if command -v wget
>/dev
/null
; then
17 wget
-q -O "$FILE" "$URL" ||
exit 1
19 curl
-s -o "$FILE" "$URL" ||
exit 1
22 $TAR xf
"$FILE" -C /tmp
/bin
--strip-components=3 .
/usr
/bin ||
exit 1