Martchus
513103840d
* Add my GPG key to the pacman keyring (not nice to hard-code it in the Dockerfile but good enough for now) * Install ccache into the base image to support makepkg's ccache option * Split syncing packages and execution of `makepkg` so syncing can be avoided when only building source package * Don't quote `CRE`, it is unlikely spaces are needed here and using chained commands (e.g. `sudo …`) might be useful * Add documentation
8 lines
246 B
Bash
8 lines
246 B
Bash
#!/bin/bash
|
|
set -e
|
|
for config_file in {makepkg,pacman}.conf; do
|
|
[[ -f $config_file ]] && cp --target-directory=/etc "$config_file"
|
|
done
|
|
source PKGBUILD
|
|
pacman -Syu --noconfirm --needed "${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}"
|