summaryrefslogtreecommitdiff
path: root/.config/pacman/makepkg.conf
blob: 2e627b878ded3ae584e88b88ee2b3bff37ffe518 (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
#!/hint/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="-j$(($(nproc)+1))"

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