You are not logged in.
I've done some own packages with PKGBUILD and after that I've got a bit mess in the abs/local diractory. Why there are two copies of program source tarballs after "makepkg" (the second one in abs/local/program/src)? How to make the abs/local/ directory clean? I mean what do you do when your package is built and installed successfully? Where do you keep your own packages; together in a directory or separetely in abs/local as is?
Thanks for any hints
Offline
are you doing like this:
/var/abs/local/program_0/PKGBUILD
/var/abs/local/program_1/PKGBUILD
and so forth?
there are also a few flags you can use for makepkg, "c" for cleaning and "i" for installing, like "makepkg -ci", that's the only ones i use,
arch + gentoo + initng + python = enlisy
Offline
i always use "makepkg -cf" for clean and force (if package already exists)
Offline
I just came up with a simple solution, so if you want to make -f without the c, you can look in the src directory to see what the pkgbuild did. I put the following alias in my ~/.bashrc:
alias rmpkg='rm -r filelist src/ pkg/ *.pkg.tar.gz'
Then I just run 'rmpkg' in the PKGBUILD directory. This leaves source files, which is nice because you don't have to dl them again. Another nice thing is if there are other files you want to remove, just add them as arguments:
rmpkg extra.file extra.file.2
Dusty
Offline
This leaves source files, which is nice because you don't have to dl them again.
Source files are cached anyway, Dusty, in /var/cache/pacman/src.
Offline
Source files are cached anyway, Dusty, in /var/cache/pacman/src.
I know but... Often it seems to download the files again anyway. I'm not certain why; in my case, maybe its because I'm packaging java apps; I don't know if makepkg automatically caches .jar files and such.
Dusty
Offline
Dusty wrote:This leaves source files, which is nice because you don't have to dl them again.
Source files are cached anyway, Dusty, in /var/cache/pacman/src.
that's only if you run as root *shakes finger at tomk*
if run as a user it downloads source directly to the PKGBUILD directory
Offline
Ah, thanks for making sense of that, phrakture. I wondered what I was getting.
Offline