[aur-general] PKGBUILD review request

Anatol Pomozov anatol.pomozov at gmail.com
Fri Jan 10 20:10:34 EST 2014


Hi

On Fri, Jan 10, 2014 at 4:32 PM, Jason St. John <jstjohn at purdue.edu> wrote:
> You should quote the link in the source array and any string that
> includes a Bash variable (e.g. use `install -Dm 755
> "$pkgname-go-$pkgver" "$pkgdir/usr/bin/$pkgname-go"`).

Could you please please explain it? Why bash variables need quotes?

Well, $srcdir/$destdir need double-quotes because they might contain
spaces (although creating dirs with white-spaces on UNIX is a dumb
idea). What about other variables like $pkgver? The same question
applied to other parts of PKGBUILD - why quotes are needed for
dependencies, license, arch, sources...?


More information about the aur-general mailing list