Skip to content

Commit 3e35fca

Browse files
committed
Arch Linux: fix makepkg failures in update-aur.sh
makepkg expects the PKGBUILD file to be in the current working directory. Our ./dist/arch/update-aur.sh script runs makepkg in an arbitrary directory, causing makepkg to often fail. Fix our ./dist/arch/update-aur.sh script to run makepkg from the correct directory.
1 parent 391b264 commit 3e35fca

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dist/arch/update-aur.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ if [ "${#}" -ne 1 ]; then
1212
fi
1313

1414
qljsaur="${1}"
15-
here="$(dirname "${0}")"
16-
17-
cp "${here}/PKGBUILD-release" "${qljsaur}/PKGBUILD"
18-
updpkgsums "${qljsaur}/PKGBUILD"
19-
makepkg --printsrcinfo "${qljsaur}/PKGBUILD" >"${qljsaur}/.SRCINFO"
15+
here="$(cd "$(dirname "${0}")" && pwd)"
2016

2117
cd "${qljsaur}"
18+
19+
cp "${here}/PKGBUILD-release" PKGBUILD
20+
updpkgsums PKGBUILD
21+
makepkg --printsrcinfo PKGBUILD >.SRCINFO
22+
2223
git add PKGBUILD .SRCINFO
2324
printf '\nChanges staged. Please commit and push.\n' >&2
2425

0 commit comments

Comments
 (0)