You are not logged in.

#1 2013-01-30 22:40:57

lmello
Member
From: Brazil
Registered: 2012-11-06
Posts: 300

makepkg and pkgbuild - list dependencies

Hi,

I've never written a pkgbuild from scratch, and I have a question: suppose I found out a nice program that's not in the AUR. How do I fill in the 'depends=(), makedepends=() and optdepends() lists? In Salix I had a nice little tool named depfinder whose output listed all dependencies from a slackware/salix package. Now that I have a rather complex system with many installed packages, how do I figure it out the 'essential' ones for one program to build and run using a pkgbuild?

Last edited by lmello (2013-01-30 22:42:02)


Fundamental Axiom of the Universe (aka Murphy's Law): Whatever can go wrong, will go wrong.
First Digital Deduction: Nothing obeys Murphy's Law so well as computers.
Second Digital Deduction: Everything go wrong at least once.
Third Digital Deduction: Things go wrong even when there's absolutely no possibility of anything go wrong.

Offline

#2 2013-01-30 23:01:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: makepkg and pkgbuild - list dependencies


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-03-06 14:21:29

lmello
Member
From: Brazil
Registered: 2012-11-06
Posts: 300

Re: makepkg and pkgbuild - list dependencies

I meant what if I have an empty depends=() array? Pacman -Qip <package> doesn't help then...


Fundamental Axiom of the Universe (aka Murphy's Law): Whatever can go wrong, will go wrong.
First Digital Deduction: Nothing obeys Murphy's Law so well as computers.
Second Digital Deduction: Everything go wrong at least once.
Third Digital Deduction: Things go wrong even when there's absolutely no possibility of anything go wrong.

Offline

#4 2013-03-06 14:40:12

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: makepkg and pkgbuild - list dependencies

Read the package's documentation. Usually the authors will list the build dependencies in the README or INSTALL file, or possibly somewhere on the package's website. Then it's up to you to find the Arch/AUR packages that fulfill those dependencies.

Offline

#5 2013-03-06 14:47:58

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: makepkg and pkgbuild - list dependencies

lmello wrote:

I meant what if I have an empty depends=() array? Pacman -Qip <package> doesn't help then...

Read the part below that, regarding namcap.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB