berry icon indicating copy to clipboard operation
berry copied to clipboard

AUR package not installing man files

Open xenanthropy opened this issue 2 years ago • 1 comments

I know it was an issue previously but it seems to have come back! i've gone through the pkgbuild and can't seem to see why it's not working, it doesn't pop out any errors when it's installing (ie it says "Installing /var/tmp/pamac-build-conner/berry/pkg/berry-git//usr/local//share//man1/berryc.1 ...") but when I try to "man berry" or "man berryc" it says there's no man files. I even tried putting the latest commit into the pkgbuild so it would build the newest version but no change. I'll just build and install directly from github for now, but a look at the AUR would be nice when you have the time!

xenanthropy avatar Sep 13 '21 16:09 xenanthropy

The AUR PKGBUILD explicitly sets mandir to /usr/local//share/ and that's where the Makefile installs it. The correct dirname is /usr/local/share/man, which is where man will look for it.

There are a few problems there, and all of them are with the PKGBUILD.

First, the PKGBUILD does not call configure. Yes, make will do that automatically, but you miss out on being able to set important flags, like --prefix=/usr.

Second, /usr/local is for hand-built executables. Packages should be built for the /usr prefix.

Third, there is no need to manually set mandir, or anything else other than the prefix. It should just be doing

configure --prefix=/usr
make DESTDIR="${pkgdir}" install

msharov avatar Sep 15 '21 17:09 msharov