There is also no need to use the -f
parameter within the rm
call. Please remove it together with the sudo
.
While you are updating the PKGBUILD, please make sure to use quotation marks when using a variable in a string parameters. Missing that causes a package build to fail when the build path contains a space character.
Example:
bad: install -dm 755 $pkgdir/opt/$pkgname
good: install -dm 755 "$pkgdir/opt/$pkgname"
(this variant is used in /usr/share/pacman/PKGBUILD.proto
)
also good: install -dm 755 "$pkgdir"/opt/"$pkgname"
Pinned Comments