You are not logged in.

#1 2006-08-28 10:03:21

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

kinda got me puzzled?

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

#2 2006-08-28 11:05:41

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: kinda got me puzzled?

I'm a little confused about what you are asking but the source command will cache all variables from a bash file.

Offline

#3 2006-08-28 11:25:39

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: kinda got me puzzled?

basically.
, its a bash script and all i need it to read is $startdir?

Offline

#4 2006-08-28 11:27:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: kinda got me puzzled?

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

#5 2006-08-28 11:32:01

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: kinda got me puzzled?

thanks tom, it calls it from the build function! I will read version-pkg..... big_smile

Offline

Board footer

Powered by FluxBB