diff options
author | Christian Schendel | 2024-03-20 14:44:16 +0100 |
---|---|---|
committer | Christian Schendel | 2024-03-20 14:44:16 +0100 |
commit | b019e094ba595613a86e807769b6f25cdcfa61cd (patch) | |
tree | 7150224dba8f6e467fd6b23c70772a3bdfb34e04 /chroot-build.sh | |
parent | 13e3017f3309bb1718cc397accfa37d3e11fd00f (diff) | |
download | aur-b019e094ba595613a86e807769b6f25cdcfa61cd.tar.gz |
add chroot-build
modified: .gitignore
new file: chroot-build.sh
Diffstat (limited to 'chroot-build.sh')
-rwxr-xr-x | chroot-build.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chroot-build.sh b/chroot-build.sh new file mode 100755 index 000000000000..f358a74acaaf --- /dev/null +++ b/chroot-build.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# This script updates the package version if a new version is available +set -euxo pipefail + +# Preparing arch-chroot +CHROOT=$HOME/.local/share/chroot +if [[ ! -d "$CHROOT" ]]; then + mkdir -p "$CHROOT" + mkarchroot "$HOME/.local/share/chroot/root" base-devel + arch-nspawn "$HOME/.local/share/chroot/root" pacman -Syu +fi + +# Start generate package +makechrootpkg -c -r "$CHROOT" -- -Acsf . + +# Update .SRCINFO +#makepkg --printsrcinfo >.SRCINFO + +# Commit changes +#git add PKGBUILD .SRCINFO +#git commit -s -m "Update to ${VER}" +#rm -rf *.gz *.log *.zst +sudo rm -Rf "$CHROOT" |