mirror of
https://github.com/heyhusen/archlinux-package-action.git
synced 2025-04-02 17:45:02 +02:00
23 lines
477 B
Bash
Executable file
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
|