You are not logged in.

#1 2014-04-13 09:19:58

lisztinf
Member
From: Pisa
Registered: 2012-09-07
Posts: 5

[SOLVED] How to set the packager name for an AUR package?

Hi,
   I'm maintaining an AUR package (fspcc), but I don't know how to set the name of the "packager" for that package.

E.g. when you request info about some package
    $ pacman -Qi somepkg
there is a line
    Packager: Unknown Packager
that specifies the packager.

How do I set this "Packager" info so that any user installing my package will see what I want?

Last edited by lisztinf (2014-04-13 13:39:43)

Offline

#2 2014-04-13 09:27:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,730
Website

Re: [SOLVED] How to set the packager name for an AUR package?

man makepkg.conf

Offline

#3 2014-04-13 09:30:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] How to set the packager name for an AUR package?

This field is specified in makepkg.conf, and is therefore only added to the package when it's built. You can't specify it in the PKGBUILD.

Offline

#4 2014-04-13 09:44:32

lisztinf
Member
From: Pisa
Registered: 2012-09-07
Posts: 5

Re: [SOLVED] How to set the packager name for an AUR package?

Thanks for the answer.

I guess that when I run
   $ makepkg
in my local build directory, then "mkpkg" will build a package with the "Packager" info set accordingly to my local makepkg.conf.

However, I would like another user - with his own makepkg.conf - to see what I want when installing the package. How can I achieve this?

If I install an official package - say pacman itself - through ABS, I see the "Packager" field properly set for that official package. But certainly this info doesn't come from my local makepkg.conf. I would like the same behaviour for my package. Is it possible?

Offline

#5 2014-04-13 10:24:14

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] How to set the packager name for an AUR package?

Like I just said - you can't do what you want with the existing tools. The reason you see the correct info for official packages is that they are already built. AUR packages are not - they are built by the user on their own machine, using their own makepkg.conf.

If you want to provide compiled packages in your own repo, then users can choose to add that repo to their pacman.conf - only then will they see what you want them to see.

Offline

#6 2014-04-13 11:23:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] How to set the packager name for an AUR package?

You can set PACKAGER in the PKGBUILD itself (but, please never do this). PACKAGER is the identifier for the user who built the package. In the AUR, each user is their own packager. So, it wouldn't make sense to try to enforce this from the PKGBUILD, since you aren't the builder of the package.

Offline

#7 2014-04-13 13:38:08

lisztinf
Member
From: Pisa
Registered: 2012-09-07
Posts: 5

Re: [SOLVED] How to set the packager name for an AUR package?

This makes a lot of sense. The problem was my misunderstanding of the AUR philosophy.

Now I understand that what I would like to do is simply not the case.

Thanks

Offline

Board footer

Powered by FluxBB