You are not logged in.
Hi
I'm trying to write a PKGBUILD (I allready have some experiences) and part of installation procedure is to run 'make install'. But it tries to write directly to final locations of files (/usr/...) ...
What is standard aproach to such situation? Is it possible to fool 'make install' to copy files to $pkgdir as a fake root?
Or should I extract all relevant commands from make install and modify and put them directly to PKGBUILD? This is not always easy, and is prone to mistakes, I think....
Please advice.....
Offline
It is usually something like:
make DESTDIR=$pkgdir install
or
make prefix=$pkgdir/usr install
Offline
looks very simple, I will try it .....
Offline
But doesn't work...
Offline
You need to examine the Makefile then - the install target in particular. Patching is the best solution - sed'ing is also OK. Running a bunch of install/cp commands in your PKGBUILD works, but is not very elegant.
Offline