Add simple function to sign packages
Set SIGNPKG to y in makepkg.conf to enable signing.
This commit is contained in:
parent
0e6780f2c8
commit
7037948b65
|
@ -130,9 +130,16 @@ for _arch in ${arch[@]}; do
|
||||||
fi
|
fi
|
||||||
uploads+=("$pkgfile")
|
uploads+=("$pkgfile")
|
||||||
|
|
||||||
|
if [[ $SIGNPKG == 'y' ]]; then
|
||||||
|
echo "Signing package ${pkgfile}..."
|
||||||
|
gpg --detach-sign --use-agent -u "${PACKAGER}" "${pkgfile}" || abort
|
||||||
|
fi
|
||||||
|
|
||||||
sigfile="${pkgfile}.sig"
|
sigfile="${pkgfile}.sig"
|
||||||
if [ -f "${sigfile}" ]; then
|
if [ -f "${sigfile}" ]; then
|
||||||
uploads+=("$sigfile")
|
uploads+=("$sigfile")
|
||||||
|
elif [[ $SIGNPKG == 'y' ]]; then
|
||||||
|
abort "Signature ${pkgfile}.sig was not found"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
archrelease $repo-${_arch} || abort
|
archrelease $repo-${_arch} || abort
|
||||||
|
|
Loading…
Reference in New Issue