2015-04-09 22:53:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# install_tools.sh
|
|
|
|
|
|
|
|
mkdir -p $HOME/bin
|
|
|
|
|
|
|
|
/bin/echo -e '\x1b[32mInstalling xbps...\x1b[0m'
|
|
|
|
wget -q -O - http://repo.voidlinux.eu/static/xbps-static-latest.x86_64-musl.tar.xz | \
|
2015-06-03 09:43:13 +00:00
|
|
|
unxz | tar x -C $HOME/bin --wildcards "./usr/bin/xbps-*" \
|
2015-04-09 22:53:46 +00:00
|
|
|
--strip-components=3 || exit 1
|
|
|
|
|
2016-11-17 16:54:21 +00:00
|
|
|
sudo chown root $HOME/bin/xbps-uchroot
|
|
|
|
sudo chmod u+s $HOME/bin/xbps-uchroot
|
|
|
|
|
2015-04-09 22:53:46 +00:00
|
|
|
/bin/echo -e '\x1b[32mInstalling xtools...\x1b[0m'
|
|
|
|
wget -q -O - https://github.com/chneukirchen/xtools/archive/master.tar.gz | \
|
|
|
|
gunzip | tar x -C $HOME/bin --wildcards "xtools-master/x*" \
|
|
|
|
--strip-components=1 || exit 1
|
|
|
|
|
|
|
|
/bin/echo -e '\x1b[32mUpdating etc/conf...\x1b[0m'
|
2016-11-17 16:54:21 +00:00
|
|
|
echo XBPS_CHROOT_CMD=uchroot >> etc/conf
|
2015-04-10 14:37:29 +00:00
|
|
|
echo XBPS_MAKEJOBS=4 >> etc/conf
|
2017-02-07 02:48:14 +00:00
|
|
|
echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf
|
2017-09-14 06:54:40 +00:00
|
|
|
|
|
|
|
/bin/echo -e '\x1b[32mUpdating etc/repos-remote.conf...\x1b[0m'
|
2017-09-15 01:05:32 +00:00
|
|
|
sed -i 's#https\?://repo\.voidlinux\.eu#http://198.204.250.219#' etc/repos-remote.conf
|