You are not logged in.

#1 2014-01-02 21:13:33

cdbfoster
Member
Registered: 2014-01-02
Posts: 12

Best way to manage a downloaded binary with pacman?

Hi all,

Supposing I downloaded a binary release of some project from a website, what would be the best way to keep track of all of the files using the package manager?  I'm new to PKGBUILDs and such, but my first thought was to write a PKGBUILD with the package information and only a package() step.  Is there a better way?  Am I way off?  Any help is appreciated!  Thanks!

Offline

#2 2014-01-02 21:14:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,655

Re: Best way to manage a downloaded binary with pacman?

cdbfoster wrote:

Am I way off?

Nope, you're right on. Dependencies are usually the hardest part of this type of PKGBUILD.

Last edited by Scimmia (2014-01-02 21:15:53)

Offline

#3 2014-01-02 21:25:11

cdbfoster
Member
Registered: 2014-01-02
Posts: 12

Re: Best way to manage a downloaded binary with pacman?

Excellent, thanks for the quick reply!

Another quick/semi-related question, if I have a working copy of a project's source that I modify constantly, how would I manage/update the resulting binaries with the package manager?  Perhaps similar to above, but including a build() step, then building the project using makepkg?  Or I suppose I could just do exactly the same as above and run makepkg after it's built, but it made sense to me to bundle the building in with the PKGBUILD.

Offline

#4 2014-01-02 21:52:28

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

Re: Best way to manage a downloaded binary with pacman?

The solution to each is makepkg and a PKGBUILD.  If prebuilt, it will just get packaged, if from source, it will get built and packaged.

Examples: mprime-bin and mprime (although mprime is not the cleanest example due to odd upstream requirements).  Check the AUR for them both to see the corresponding PKBUILD for each.

Offline

#5 2014-01-03 02:41:10

cdbfoster
Member
Registered: 2014-01-02
Posts: 12

Re: Best way to manage a downloaded binary with pacman?

Perfect, I'm glad that makes sense to me.  Thanks for the examples!

Offline

Board footer

Powered by FluxBB