* 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
7 lines
299 B
Bash
7 lines
299 B
Bash
#!/bin/bash
|
|
set -e
|
|
export LOGDEST=$PWD SRCPKGDEST=$PWD SRCDEST=$PWD PKGDEST=$PWD BUILDDIR=/build
|
|
export BUILDTOOL=makecontainerbuild BUILDTOOLVER="0.0.1"
|
|
chown builduser:builduser "$PWD"
|
|
sudo --preserve-env=LOGDEST,SRCPKGDEST,SRCDEST,PKGDEST,BUILDDIR,BUILDTOOL,BUILDTOOLVER --user builduser makepkg
|