Difference between revisions of "DeveloperWiki:PKGBUILD.com"

From ArchWiki
Jump to: navigation, search
(Creating and building packages)
(adding greplib suggestiong)
Line 56: Line 56:
     User youruser
     User youruser
     ForwardAgent yes
     ForwardAgent yes
==Genereting rebuilding list when soname is bumped==
$ greplib soname
$ greplib x264.so.107

Revision as of 19:18, 7 January 2011

Directories that must be used

All users should use only ~/chroots for storing his chroots and ~/packages for storing packages builds. This directories are excluded from backups and all other directories are automatically backed up.

Creating chroots and building packages

Devtools 0.9.10 has build helpers that can be used.


This can be used to _create_ and build packages. Chroots are created by default in ~/chroots. To build packages that depends on each other should be use makechrootpkg directly.

$ extra-i686-build
$ testing-x86_64-build


$ linux32 sudo makechrootpkg -cr ~/chroots/extra-i686 -- -i

next package

$ linux32 sudo makechrootpkg -r ~/chroot/extra-i686


$ sudo makechrootpkg -cr ~/chroots/extra-x86_64 -- -i

next package

$ sudo makechrootpkg -r ~/chroot/extra-x86_64

Updating chroots

$ sudo chrootupdate

Packager && Makeflags

Add ~/.makepkg.conf with PACKAGER information
PACKAGER="Name <email>"

Connecting to sigurd or gerolde from alderaan

On your local system add this:

$ cat .ssh/config
  Host pkgbuild.com
    Hostname pkgbuild.com
    User youruser
    ForwardAgent yes

Genereting rebuilding list when soname is bumped

$ greplib soname $ greplib x264.so.107