diff --git a/doc/PKGBUILD.5.asciidoc b/doc/PKGBUILD.5.asciidoc index 775ad021..f37c6e77 100644 --- a/doc/PKGBUILD.5.asciidoc +++ b/doc/PKGBUILD.5.asciidoc @@ -342,7 +342,8 @@ function. An optional `verify()` function can be specified to implement arbitrary source authentication. The function should return a non-zero exit code when verification fails. This function is run before sources are extracted. - This function is run inside `$startdir`. + This function is run inside `$SRCDEST`, if set, otherwise the same + directory as the PKGBUILD. *prepare() Function*:: An optional `prepare()` function can be specified in which operations to diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 591b010e..f69d3b09 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -450,7 +450,7 @@ run_function() { } run_verify() { - run_function_safe "verify" "$startdir" + run_function_safe "verify" "$SRCDEST" } run_prepare() {