You are not logged in.

#1 2014-06-27 20:36:22

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Creating a meta package

Basically want to create a simple meta package and need an example to work from. Would like to look at 'base' Pkgbuild for a start. Or would it be easier to write a wrapper around pacstrap to do work for me?


Mr Green

Offline

#2 2014-06-27 21:27:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Creating a meta package

What do you mean by a meta package?
https://www.archlinux.org/groups/x86_64/kde-meta/

Offline

#3 2014-06-27 21:33:29

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Creating a meta package

A meta package is simply an empty package with a bunch of dependencies, but 'base' is a package group. You can specify 'groups' in PKGBUILDs. I don't think there's more to it, but if this is for something you want to upload to the AUR, I'm not sure how well groups are supported. A meta package could be useful assuming you install it using an AUR helper to take care of the dependencies.

Offline

#4 2014-06-28 05:09:06

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Creating a meta package

I need something like base package (group). Basically it pulls in a list of defined packages...was just curious as too how it worked. Do a lot of test installs and simply wanted a local way of using pacstrap to pull in a list of defined packages.


Mr Green

Offline

#5 2014-06-28 05:34:55

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

Re: Creating a meta package

Mr Green wrote:

I need something like base package (group). Basically it pulls in a list of defined packages...was just curious as too how it worked. Do a lot of test installs and simply wanted a local way of using pacstrap to pull in a list of defined packages.

List your packages in a file and use the minus option and stdin:

pacstrap /root - <pkgs.list

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

Offline

#6 2014-06-28 06:17:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Creating a meta package

Well that would work, will have to see if I can find a group package build to feed my curiosity

Thanks


Mr Green

Offline

#7 2014-06-28 11:07:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Creating a meta package

There is no such thing as a group PKGBUILD.  Groups are defined by the packages themselves (there is a groups *variable* in a PKGBUILD).  If you are packaging foo bar and baz, you can assign the group variable in all of them to be "mygroup".  Then assuming foo bar and baz are built and in a repo, `pacman -S mygroup` would install all three of them.  But there is no PKGBUILD for "mygroup".

If thre is a PKGBUILD for the entity that pulls in other packages, then it is not a group, it is a meta-package.

If you didn't pakage foo bar and baz yourself, you could make a new package called "mymeta" that depends on all three of them.  Then when you run `pacman -S mymeta` it will install all 3 as dependencies, and "mymeta" as explicitly installed.

Last edited by Trilby (2014-06-28 11:07:36)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2014-06-28 12:42:51

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Creating a meta package

That is where the confusion lays I want a meta package that pulls in a number of packages. Namely base,syslinux and a few other applications.

I just saw then as group packages, thanks for the explanation


Mr Green

Offline

#9 2014-06-30 02:41:55

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: Creating a meta package

Try creating a PKGBUILD such as

pkgname=my-custom-meta
pkgver=0.0.1
pkgrel=1
arch=('any')
url="http://www.example.com/"
license=('custom:unknown')
depends=('syslinux' 'base')

package() {
  true
}

Then run makepkg -si

Last edited by thiagowfx (2014-06-30 02:43:27)

Offline

Board footer

Powered by FluxBB