[pacman-dev] [patch] add support for scriptlets functions embedded in $BUILDSCRIPT

Aaron Griffin aaronmgriffin at gmail.com
Thu Aug 2 20:26:56 EDT 2007

On 8/2/07, Travis Willard <travis at archlinux.org> wrote:
> Along those lines, what about functions that reference a global
> variable inside the PKGBUILD?  like:
> post_install() {
>   depmod -v $__KERNEL_VERSION > /dev/null 2>&1
> }
> I could see that specifically happening in kernel modules (which is
> where a lot of the .install file sed-ding happens, and why I
> remembered).  If those variables aren't there in the .INSTALL file, then
> what?

Oh good point, I didn't think that far ahead.

if that's the case, then we have two options:
a) this patch doesn't force usage one way or the other, it just
_allows_ things to be inline.  Kernel modules can still be kept
b) Alessio, can you think of a way to overcome this issue?

More information about the pacman-dev mailing list