16 Jun
2012
16 Jun
'12
1:46 p.m.
* ${srcdir}, ${pkgdir}
I'm not sure I understand. Should I remove all uses of these variables? I assumed they're set implicitly when user runs makepkg -s
Nope. In your code, you use $srcdir. When you should use ${srcdir}. See the difference? The braces are important: if someone uses spaces in their build directory, your PKGBUILD will fail to work.
Braces have nothing to do with spaces in paths; they allow you to use variables followed by other characters that could be part of the variable name: ${foo}bar vs $foobar. You need to surround paths with quotes to protect against spaces: "$srcdir/foobar"