You are not logged in.
Pages: 1
Is there a way to parse makepkg variables from within a different script that is called by makekg?
basically my idea is that to create the package you run makepkg that executes the script? This will not be submitted to aur due to needing to add an external file that the user must supply themselves.
But I want to wrap it in makepkg so that pacman still has control over what is installed.
Offline
I'm a little confused about what you are asking but the source command will cache all variables from a bash file.
Offline
basically.
, its a bash script and all i need it to read is $startdir?
Offline
If you look at existing makepkg wrappers e.g. versionpkg or iphitus' abs-module, both of them source the PKGBUILD from the directory in which they are called, so that they can make use of one or more PKGBUILD variables before calling makepkg. You're talking about getting makepkg to call another script - do you mean outside of the PKGBUILD's build() function? That would require a patch for makepkg.
Offline
thanks tom, it calls it from the build function! I will read version-pkg.....
Offline
Pages: 1