File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,21 @@ git config --global user.name "$commit_username"
5353git config --global user.email " $commit_email "
5454echo ' ::endgroup::'
5555
56+ echo ' ::group::Updating pkgver'
57+ if grep -q ' pkgver()' $pkgbuild ; then
58+ echo ' Running `makepkg -od` to update pkgver'
59+ mkdir -p /tmp/makepkg
60+ cp " $pkgbuild " /tmp/makepkg/PKGBUILD
61+ (
62+ cd /tmp/makepkg;
63+ makepkg -od;
64+ )
65+ pkgbuild=/tmp/makepkg/PKGBUILD
66+ else
67+ echo ' No pkgver() found in PKGBUILD'
68+ fi
69+ echo ' ::endgroup::'
70+
5671echo ' ::group::Cloning AUR package into /tmp/local-repo'
5772git clone -v " https://aur.archlinux.org/${pkgname} .git" /tmp/local-repo
5873echo ' ::endgroup::'
@@ -70,11 +85,13 @@ if [[ -n "$assets" ]]; then
7085fi
7186echo ' ::endgroup::'
7287
88+
7389echo ' ::group::Generating .SRCINFO'
7490cd /tmp/local-repo
7591makepkg --printsrcinfo > .SRCINFO
7692echo ' ::endgroup::'
7793
94+
7895echo ' ::group::Committing files to the repository'
7996if [[ -z " $assets " ]]; then
8097 # When $assets are not set, we can add just PKGBUILD and .SRCINFO
You can’t perform that action at this time.
0 commit comments