On 04/06/10 18:42, Thomas Bächler wrote:
Am 04.06.2010 10:08, schrieb Allan McRae:
On 04/06/10 17:43, Thomas Bächler wrote:
Am 04.06.2010 02:06, schrieb Allan McRae:
Can anyone think of an actual use of $startdir in PKGBUILDs?
It is used in the kernel and module PKGBUILDs to mangle the install file
prior to packaging:
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/"
$startdir/xxx.install
$srcdir should work there.
The .install file is never part of the source, and as such it is never
in $srcdir.
Ah... so they do not. My test PKGBUILD had the .install file in the
source array from testing some bug fix. But maybe they should move to
$srcdir.