summaryrefslogtreecommitdiff
path: root/.config/pacman/makepkg.conf
blob: 8389fb5e09239e6947af4100e1ec52628584b0ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/phony/bash

PKGDEST="${LIBREHOME:-$HOME}/packages/pkgdest"
SRCDEST="${LIBREHOME:-$HOME}/packages/srcdest"
SRCPKGDEST="${LIBREHOME:-$HOME}/packages/srcpkgdest"
LOGDEST="${LIBREHOME:-$HOME}/packages/logdest"

PACKAGER="Luke Shumaker <lukeshu@sbcglobal.net>"

MAKEFLAGS="-j3"

if type ccache &>/dev/null; then
	f=false
	for i in "${!BUILDENV[@]}"; do
		if [[ "${BUILDENV[$i]}" == '!ccache' ]]; then
			BUILDENV[$i]='ccache'
			f=true
		fi
	done
	if [[ $f == false ]]; then
		BUILDENV+=('ccache')
	fi
	unset f i
fi