[pacman-dev] $startdir in PKGBUILDs

Allan McRae allan at archlinux.org
Fri Jun 4 04:08:36 EDT 2010


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.


More information about the pacman-dev mailing list