mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-14 21:27:01 +02:00
this should allow package tests that check things like writability to succeed and have fewer skipped tests in CI. - switch to using the `void-LIBC-full` container - use `uchroot` instead of `ethereal` - simplify some scripts for this change
22 lines
523 B
Bash
Executable file
22 lines
523 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# fetch-xbps.sh
|
|
|
|
command -v xbps-uhelper >/dev/null && exit
|
|
TAR=tar
|
|
command -v bsdtar >/dev/null && TAR=bsdtar
|
|
ARCH=$(uname -m)-musl
|
|
VERSION=0.59_5
|
|
URL="https://repo-ci.voidlinux.org/static/xbps-static-static-${VERSION}.${ARCH}.tar.xz"
|
|
FILE=${URL##*/}
|
|
|
|
mkdir -p /tmp/bin
|
|
|
|
/bin/echo -e '\x1b[32mInstalling xbps...\x1b[0m'
|
|
if command -v wget >/dev/null; then
|
|
wget -q -O "$FILE" "$URL" || exit 1
|
|
else
|
|
curl -s -o "$FILE" "$URL" || exit 1
|
|
fi
|
|
|
|
$TAR xf "$FILE" -C /tmp/bin --strip-components=3 ./usr/bin || exit 1
|