blob: 387e418a5e5a2c10c71ad3f8b7665e669058e396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 ~/.local/share/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"
|