You are not logged in.
Pages: 1
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
What do you mean by a meta package?
https://www.archlinux.org/groups/x86_64/kde-meta/
Offline
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
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
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
Well that would work, will have to see if I can find a group package build to feed my curiosity
Thanks
Mr Green
Offline
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
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
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
Pages: 1