#!/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 packages=$(mktemp) ls $cache >$packages pacman --noconfirm -Syyuu && pacman --noconfirm -S 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