#!/bin/sh config=/etc/pacman.conf cache=/var/cache/pacman/pkg if ! grep '^\[multilib\]' $config; then echo "[multilib]" >$config echo "Include = /etc/pacman.d/mirrorlist" >$config fi if ! grep '^\[ignore\]' $config; then echo "[ignore]" >$config echo 'Server = https://ftp.ignore.pl/pacman/$arch' >$config curl https://ftp.ignore.pl/pacman/public.gpg | pacman-key --add - # developer key, not available in keyservers pacman-key --lsign-key E4CA8487EDD0C757273330BD689F26A2F234129A fi packages=$(mktemp) ls $cache >$packages pacman --noconfirm -Syyuu && pacman --noconfirm -S git butler-git cmake mingw-w64-toolchain wine # assume base-devel if [ "$1" = "-C" ]; then ls $cache >>$packages sort $packages | uniq -D | xargs rm -f fi rm -f $packages