1
0
Fork 1
mirror of https://github.com/heyhusen/archlinux-package-action.git synced 2025-04-02 17:45:02 +02:00
archlinux-package-action/entrypoint.sh
2021-05-18 16:49:00 +07:00

23 lines
477 B
Bash
Executable file

#!/bin/sh -l
cd $INPUT_PATH
if [[ $INPUT_UPDPKGSUMS == true ]]; then
echo "Update checksums on PKGBUILD"
updpkgsums
git diff PKGBUILD
fi
if [[ $INPUT_SRCINFO == true ]]; then
echo "Generate new .SRCINFO based on PKGBUILD"
sudo -u builder makepkg --printsrcinfo > .SRCINFO
git diff .SRCINFO
fi
echo "Run makepkg with flags"
sudo -u builder makepkg $INPUT_FLAGS
if [[ $INPUT_NAMCAP == true ]]; then
echo "Validate PKGBUILD with namcap"
namcap -i PKGBUILD
fi