blob: c6da9077403ab04a6d07aee72c3802a1643cf840 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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
|