16 lines
414 B
Bash
Executable File
16 lines
414 B
Bash
Executable File
#!/bin/bash
|
|
# aurb / aurs: aur build / aur sync with ccache mounted in the chroot (use with -c)
|
|
case "$(basename "$0")" in
|
|
aurb) cmd=build ;;
|
|
aurs) cmd=sync ;;
|
|
*) echo "Invoke as aurb or aurs" >&2; exit 1 ;;
|
|
esac
|
|
|
|
CCACHE_HOST_DIR="$HOME/.cache/ccache"
|
|
mkdir -p "$CCACHE_HOST_DIR"
|
|
|
|
exec aur "$cmd" \
|
|
--makepkg-conf "$HOME/.config/aurutils-makepkg.conf" \
|
|
--bind-rw "$CCACHE_HOST_DIR" \
|
|
"$@"
|