You are not logged in.
Pages: 1
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
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
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
Another essential read is http://wiki.archlinux.org/index.php/ABS .
Offline
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
Pages: 1