You are not logged in.

#1 2020-03-25 13:53:01

desperado
Member
Registered: 2018-10-12
Posts: 12

How to specify the installation location

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

#2 2020-03-25 13:56:57

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,511

Re: How to specify the installation location

It's all staged under $pkgdir

Last edited by Scimmia (2020-03-25 13:57:09)

Offline

#3 2020-03-25 14:53:32

desperado
Member
Registered: 2018-10-12
Posts: 12

Re: How to specify the installation location

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

#4 2020-03-25 15:04:27

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 7,805

Re: How to specify the installation location

Not automatically, check https://wiki.archlinux.org/index.php/Cr … #package() for some details .


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#5 2020-03-25 16:12:34

desperado
Member
Registered: 2018-10-12
Posts: 12

Re: How to specify the installation location

Lone_Wolf wrote:

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

#6 2020-03-25 16:17:08

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,511

Re: How to specify the installation location

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)

Offline

Board footer

Powered by FluxBB