1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash set -ev rundir=$HOME/pkg mkdir -p $rundir cp -R /pkg/* $rundir/ # sync dbs pacman --sync --refresh # install reasonbly fresh keyring so we can trust current maintainers pacman --noconfirm --sync archlinux-keyring cd $rundir makepkg -f --asroot --syncdeps --noconfirm