Originally Posted by psionl0
Not every Makefile honours the DESTDIR option...what to do if DESTDIR is not honoured.
In a lot of cases, src2pkg
will do all the work of creating a package for you.
Ha! Nothing like a blast from the past.
I couldn't help but adding my two cents' worth here, it might be useful for others. Don't forget slacktrack
, which is another utility for making a slackware package when DESTDIR doesn't work. I used it recently to make a package out of the texworks editor (just to try it out). The usual method (essentially that of the OP!) didn't work because DESTDIR was not honoured.
I was able to make a package (lazily) by doing the following:
- obtaining the texworks source tarball: texworks-0.4.5-r1281.tar.gz
- in the same directory as the tarball, I created a basic little build script tw.build:
which ordinarily would have compiled and installed texworks ``directly'' onto the system, i.e. bypassing slackware's package management tools.
tar xf texworks-0.4.5-r1281.tar.gz
- from the same directory execute, as root (after logging in with su - to get the proper PATHS setup, etc):
slacktrack -p texworks-0.4.5-i686-1custom.tgz ./tw.build
...and a beautiful new home-made slackware package appears at /tmp/texworks-0.4.5-i686-1custom.tgz
PS I couldn't resist giving slacktrack a plug here, given the contribution of moses
(slacktrack's author?) to the original thread so long ago...I guess that was pre-slacktrack!!