summaryrefslogtreecommitdiff
path: root/src/chroot-tools/hooks-check.sh
blob: 2702f955102548cde77b48fed780e5835056dea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -euE

hook_check_pkgbuild+=("check_pkgbuild_nonfree")
check_pkgbuild_nonfree() {
	local s=0
	sudo -EH -u "$LIBREUSER" pkgbuild-check-nonfree -f || s=$?
	pkgbuild-summarize-nonfree $s
}

#hook_check_pkgbuild+=("check_pkgbuild_namcap")
check_pkgbuild_namcap() {
	sudo -EH -u "$LIBREUSER" namcap PKGBUILD
}

#hook_check_pkg+=("check_pkg")
check_pkg() {
	# TODO
	:
}