You are not logged in.

#1 2007-05-02 21:18:25

esox_ch
Member
Registered: 2006-04-30
Posts: 45

Tutorial for AUR Package

Hello,

I want to create some few packages for AUR and I need a complete tutorial about how to use PKGBUILD&co, but I only found one "light" one on the wiki.
For instance I didn't find any explanation about how to use package.install and about how to move files from src to pkg folder.

Thanks a lot

Esox

Offline

#2 2007-05-02 21:52:14

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: Tutorial for AUR Package

The best thing to do is to start with looking at PKGBUILDs. What does what? Why is this command necessary? Try to understand the structure. Begin with simple PKGBUILDs and then, after having understood them, go a level up and look for example at PKGBUILDs which include patches ...

If you only want to create some simple PKGBUILD you can use the standard PKGBUILD of the wiki and adapt it.

build() {

cp $startdir/src/foo-0.0.1/some-file $startdir/pkg/

...

}

An example is my hiawatha PKGBUILD: http://aur.archlinux.org/packages/hiawa … a/PKGBUILD

hightower

Last edited by hightower (2007-05-02 21:52:55)

Offline

#3 2007-05-02 22:15:15

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Tutorial for AUR Package

first read the guidelines if you did not already do that: http://wiki.archlinux.org/index.php/Arc … _Standards

As hightower pointed out, try looking at other PKGBUILDS when you create your first ones. If you are not sure, ask here, or if things are not as supposed, people will probably point it out as a comment in the AUR.

Offline

#4 2007-05-02 22:28:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Tutorial for AUR Package

Another essential read is http://wiki.archlinux.org/index.php/ABS .

Offline

#5 2007-05-03 09:04:21

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Tutorial for AUR Package

the premise is very simple. you simply get the relevant files into the pkg directory somehow. This is accomplished by putting some cmds into build(). when pacman later "installs" the package it simply umpacks every file in .pkg (which is just a tar.gz, just open one up and see)  into the root dir (/)

the rest are details.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

Board footer

Powered by FluxBB