i started making packages for my archlinux-machine this week .. with some success (see http://bbs.archlinux.org/viewtopic.php?t=877 ) ... but also with some problems:
what do you do when there is no $prefix or $DESTDIR or any simmilar method to change destination of creation? ->there are a lot of nice things where the makefile is a great mess ... what do you do in such a case?
(what i did in one package that worked once: in the build-function i wrote:
make -e [...]
--> but i think this method is not a nice one to use every time for this problem
-> create a new makefile?
-> write messy build-functions for makepkg? (as i tried)
-> download the source to local and change it to suit makepkg and build it locally (BIG DISADVANTAGE --- not really abs-like)?
the things i wanted to build:
-RasMol : http://www.openrasmol.org/
-Visualization Toolkit : http://www.vtk.org/ (the requied cmake i already built and posted in incoming, if you want to try)
-and some others
what do you (power-builders of Archlinux) do in such cases?
thanx in advance
The impossible missions are the only ones which succeed.
if you have to change a few lines in certain files, you can use sed. Otherwise your best bet is to probably patch the source. Both methods are employed currently in packages and examples will be easy to find.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal