You are not logged in.

#1 2016-07-04 11:59:26

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

[SOLVED] Building batches of custom PKGBUILD?

I'm looking for a tool that can meet those requirements:
- Build a set of packages from source (local, offical, or from the AUR), resolving dependencies and building following the dependency order.
- Keep build folders and allow for reusing them (e.g. re-use a modified PKGBUILD).

I've tried different approaches, none of which seemed satisfactory:
- makeworld (that comes with pacman) does not build following the dependencies restrictions.
- yaourt removes the build folders.
- pacaur (as well as most AUR helpers) resets the PKGBUILD on each call and is restricted to the AUR.

On a related topic, what are the different ways of fetching an official PKGBUILD for a specific package?
- yaourt -G
- pbget
- abs (but I find it annoying that you have to specify the repo and end up with a repo folder).

Last edited by Ambrevar (2016-07-05 15:16:43)

Offline

#2 2016-07-04 12:05:08

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [SOLVED] Building batches of custom PKGBUILD?

You might be intersted in aurutils, especially the scripts aurqueue, and aurbuild
https://bbs.archlinux.org/viewtopic.php?id=210621

NAME
       aurutils - helper tools for the arch user repository

PROGRAMS
       The  below gives a short overview; see the respective documentation for
       details.

       aurbuild(1)
           Build packages to a local repository. Local or  nspawn  builds  are
           possible.

       aurchain(1)
           Solve and order dependencies using the AUR RPC.

       aurcheck(1)
           Check packages in a given repo for AUR updates.

       aurqueue(1)
           Order dependencies using .SRCINFO files.

       aursearch(1)
           Search AUR package names by a PCRE pattern.

       aursift(1)
           Filter packages in the Arch Linux repositories.

       aursync(1)
           Download and build AUR packages automatically.

       repofind(1)
           Display information on file:// repositories.

       repoman(1)
           Run pacman, only considering the official repositories.

Last edited by progandy (2016-07-04 12:12:28)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2016-07-04 12:08:42

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [SOLVED] Building batches of custom PKGBUILD?

You might be intersted in aurutils, especially the scripts aurqueue, and aurbuild

Those are my recommendation as well. big_smile

Also of note: https://github.com/cassava/repoctl

- abs (but I find it annoying that you have to specify the repo and end up with a repo folder).

https://github.com/falconindy/asp

Last edited by Alad (2016-07-04 12:09:19)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#4 2016-07-05 14:48:18

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: [SOLVED] Building batches of custom PKGBUILD?

asp: Very nice tool! Cannot believe I've never heard of it before.

repoctl: looks very nice, but seems to be very unfinished. Couldn't get it to do anything useful for my use case.

aurutils: nice! I love aurqueue. A few questions:
- Why do we have to specify '-a <queue>' with 'aurbuild'? Why not passing the folders or the PKGBUILDs as parameters?
- Is it possible not to clean the build files?

Last edited by Ambrevar (2016-07-05 14:48:53)

Offline

#5 2016-07-05 15:10:44

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [SOLVED] Building batches of custom PKGBUILD?

Ambrevar wrote:

aurutils: nice! I love aurqueue. A few questions:
- Why do we have to specify '-a <queue>' with 'aurbuild'? Why not passing the folders or the PKGBUILDs as parameters?
- Is it possible not to clean the build files?

Leaving data outside the positional parameters makes things easier, in particular when overriding options for makechrootpkg and makepkg. So if you don't want makepkg --clean, you can do:

aurbuild <args> -- -Lrs

which changes the makepkg option array from -Lcrs to -Lrs.

Note you can also use process substitution:

aurbuild -a <(aurqueue *)

Last edited by Alad (2016-07-05 15:15:41)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2016-07-05 15:16:23

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: [SOLVED] Building batches of custom PKGBUILD?

Oh right, I assumed that the options would be appended to what aurbuild uses.
Excellent, you made my day! big_smile

Offline

#7 2016-07-05 15:20:01

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: [SOLVED] Building batches of custom PKGBUILD?

As a conclusion, here is my current workflow:

- Fetch PKGBUILDs with asp / cower.
- Edit...
- Call aurqueue + aurbuild on all the PKGBUILDs.

It allows me to customize packages and their deps, or simply to rebuild "world" using my makepkg flags.

Last edited by Ambrevar (2016-07-05 15:30:04)

Offline

Board footer

Powered by FluxBB