You are not logged in.
How do I specify in PKGBUILD. where each file from the package should be installed? Something akin to the "%files" macro in RPM spec files. I have gone through the wiki and haven't find anything of the sort, unless I misread something.
Offline
It's all staged under $pkgdir
Last edited by Scimmia (2020-03-25 13:57:09)
Online
So if I understand correctly, does the install step (usually "make install") automatically determine the installation location for each file ("pacman -Ql <pkg-name>" to be clear) ?
Offline
Not automatically, check https://wiki.archlinux.org/index.php/Cr … #package() for some details .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Not automatically, check https://wiki.archlinux.org/index.php/Cr … #package() for some details .
Pretty sure the wiki implies it is automatic. Maybe you were referring to some other context.
PKGBUILD - automatic
RPM SPEC - manual (you need to explicitly add the location of each file or rpm won't remove the files when you uninstall the package)
Offline
That's not how anything works. %files isn't a macro, it's just a list of files to get included in the package. Arch just grabs everything in $pkgdir. Neither one are really specific to uninstalling a package, because the files wouldn't exist to get installed in the first place.
Last edited by Scimmia (2020-03-25 16:18:37)
Online