Skip to content

Do I need to create a pkgbuild file to install from source?

I want to install the latest stable version of freeipa-client on Arch but it isnt in the main repo and the AUR package is out of date. Reading through the wiki I saw the ABS and a lot of other things.

I havent installed from source in a very ling time but I dont remembet going through a lot of hurdles on other distros. I just did a make install.

3 points13 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
37ozvs

Author

19
posts
175
comments
0
media
View profile

13 comments

It's easier to manage a package rather than random files.
And in fact a pkgbuild is just a wrapper around a make & make install (or any way to create and install a software).
So it's really a good idea to use it.

6 points

Everytime I need to install something from source, I make a PKGBUILD for it. I'm already maintaining a few hundreds packages in the AUR, so I'm quite used to it, and it usually takes a few minutes to have a clean PKGBUILD (time to check hidden dependencies etc.).

In your case, the PKGBUILD exists and is out-of-date so you can just update it, it's even easier. If you're using an AUR helper (like yaourt), you can even update it on the fly if all you need is a version bump.

5 points
9279OP1 hidden

Whats the easiest way to create a pkgbuild? how do I know what the dependencies are?

1 points

I usually copy another PKGBUILD I maintain that has the same "structure" (e.g. using git + cmake), and change relevant parts. For the dependencies, it depends on the project. If you're lucky, the developers listed the dependencies in their README/INSTALL, else you need to have some developer experience (e.g. check the CMakeLists.txt for CMake projects, setup.py for Python etc.). Then it's just about knowing what the name is on Arch. Naming conventions are not the same as on Debian-based distributions, and things can be a bit messy in the AUR sometimes. A good example of naming differences between distributions can be found in ROS' rosdep. With an AUR helper, it's not that complicated. And if you know the file that's needed (e.g. libfoo.so), use pacman -Qo /usr/lib/libfoo.so to know the package's name.

3 points

So looking at the comments, the current maintainer of the AUR package is the upstream dev. You could try emailing him and see if he's willing to push out an updated PKGBUILD. You could also update the existing PKGBUILD. Then you could use that to build a package and feed that to pacman and then send it to the maintainer to have the official PKGBUILD on the AUR updated.

Either way, I would recommend using a PKGBUILD to build a package and then use pacman to install it instead of installing the program from source. Building the package will allow you to easily remove, update, etc in the future.

3 points
9279OP4 hidden

How can I check dependencies for the new version to make sure whats in the PKGBUILD are correct? I can use the existing one as a guideline but the pkgbuild format seems outdated so itll prob be best to just redo it.

1 points

Check at the upstream developer's site. There should be a list of dependencies somewhere, usually in the install instructions or the program's README.

I took at look at the source tarball of 4.1.4. The file "freeipa.spec" may have the dependency info you are asking about.

1 points

Do you still need help? If so I can make an updated pkgbuild and link it to you.

1 points

I'm going to look into figuring it out this weekend. I've got to learn to fish, but thanks.

1 points

Is it actually out of date though? The PKGBUILD should just download it from the source.
The AUR package/PKGBUILD doesn't need updated every time the package is updated.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.