1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-12-23 12:41:05 +01:00
void-packages/common/travis/fetch-xtools.sh

20 lines
424 B
Bash
Raw Normal View History

2024-03-29 08:12:19 +01:00
#!/bin/sh
#
# fetch-xtools.sh
TAR=tar
command -v bsdtar >/dev/null && TAR=bsdtar
URL="https://github.com/leahneukirchen/xtools/archive/master.tar.gz"
FILE="xtools.tar.gz"
mkdir -p /tmp/bin
/bin/echo -e '\x1b[32mInstalling xtools...\x1b[0m'
if command -v wget >/dev/null; then
wget -q -O "$FILE" "$URL" || exit 1
else
xbps-fetch -o "$FILE" "$URL" || exit 1
fi
$TAR xf "$FILE" -C /tmp/bin --strip-components=1 || exit 1