2017-02-08 11:54:30 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-03-19 10:54:11 -05:00
|
|
|
# TODO: this script is out of date!
|
|
|
|
|
2017-11-14 17:31:30 -06:00
|
|
|
# installs pacaur on a fresh arch install
|
|
|
|
|
2017-02-08 11:54:30 -06:00
|
|
|
# install the dependencies
|
2020-03-09 14:46:18 -05:00
|
|
|
sudo pacman -S git curl openssl perl expac yajl meson gmock gtest jq make pkginfo --noconfirm
|
2017-02-08 11:54:30 -06:00
|
|
|
|
|
|
|
# setup a temporary place to install the packages from
|
|
|
|
REPOSITORY_PATH="/tmp/provisioning"
|
|
|
|
mkdir -p "$REPOSITORY_PATH"
|
|
|
|
|
|
|
|
# clone the repositories
|
2019-09-15 08:43:52 -05:00
|
|
|
rm -rf "$REPOSITORY_PATH/auracle-git"
|
|
|
|
rm -rf "$REPOSITORY_PATH/pacaur"
|
|
|
|
git clone https://aur.archlinux.org/auracle-git.git "$REPOSITORY_PATH/auracle-git"
|
2017-02-08 11:54:30 -06:00
|
|
|
git clone https://aur.archlinux.org/pacaur.git "$REPOSITORY_PATH/pacaur"
|
|
|
|
|
2019-09-15 08:43:52 -05:00
|
|
|
# build and install auracle
|
|
|
|
cd "$REPOSITORY_PATH/auracle-git"
|
2017-04-03 13:06:06 -05:00
|
|
|
makepkg -i --noconfirm
|
2017-02-08 11:54:30 -06:00
|
|
|
cd -
|
|
|
|
|
|
|
|
# build and install pacaur
|
|
|
|
cd "$REPOSITORY_PATH/pacaur"
|
2017-04-03 13:06:06 -05:00
|
|
|
makepkg -i --noconfirm
|
2017-02-08 11:54:30 -06:00
|
|
|
cd -
|
|
|
|
|
2019-09-15 08:43:52 -05:00
|
|
|
# cleanup
|
|
|
|
rm -rf "$REPOSITORY_PATH/auracle-git"
|
|
|
|
rm -rf "$REPOSITORY_PATH/pacaur"
|
|
|
|
|
2017-02-08 11:54:30 -06:00
|
|
|
# once installed, let the package manager manage itself and its dependencies
|
2019-09-15 08:43:52 -05:00
|
|
|
pacaur -S auracle-git pacaur --noconfirm --noedit
|
|
|
|
|