You are not logged in.
The package I'm making uses
make install
then it just installs everthing....
from within a PKGBUILD how do I create a pkg ...
without it installing ......(in build) ?
Thanks in Advance
:?
Mr Green
Offline
I don't know if I understood correctly. Try:
make DESTDIR=$startdir/pkg install
Offline
Offline
In the best case, you can use Snowman's line. In the worst, you'll have to patch or sed the makefile to change the destination directory, possibly in multiple places if the person who made the makefile didn't know much about their syntax.
Dusty
Offline
Yes I have snowmans line in PKGBUILD
I'll look at another way to build it ...
Thanks
Mr Green
Offline
If DESTDIR doesn't work, try using prefix or PREFIX instead. Look at the Makefile to see what is it using or if there are hard-coded paths.
Offline
i never build as anything other than root - it always gives me permissions problems - i'd rather be root and and fix my rare fuck ups
Offline
i never build as anything other than root - it always gives me permissions problems - i'd rather be root and and fix my rare fuck ups
If you get permission problems, it means that it puts files directly in the system instead of putting them in the package. The packages is likely broken (missing files). And you get get orphaned files laying around or overwritten files. Personnally I always build as user. These "permissions problems" tell me how to change the PKGBUILD to get a working packages.
Offline
dibblethewrecker wrote:i never build as anything other than root - it always gives me permissions problems - i'd rather be root and and fix my rare fuck ups
If you get permission problems, it means that it puts files directly in the system instead of putting them in the package. The packages is likely broken (missing files). And you get get orphaned files laying around or overwritten files. Personnally I always build as user. These "permissions problems" tell me how to change the PKGBUILD to get a working packages.
I'll second that... when my "makepkg" command spits out "cannot access /etc" I know something is borked
Offline