Difference between revisions of "DeveloperWiki:PKGBUILD.com"

From ArchWiki
Jump to: navigation, search
(i686: I hope I didn't break anything, see talk page)
(categorizing uncategorized page)
Line 1: Line 1:
 +
[[Category:Arch development (English)]]
 
==Directories that must be used==
 
==Directories that must be used==
  

Revision as of 22:48, 8 September 2011

Directories that must be used

All users should use only ~/packages for storing packages builds and ~/svn-packages. 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.

/usr/bin/extra-i686-build
/usr/bin/extra-x86_64-build
/usr/bin/multilib-build
/usr/bin/staging-i686-build
/usr/bin/staging-x86_64-build
/usr/bin/testing-i686-build
/usr/bin/testing-x86_64-build

This can be used to _create_ and build packages. Chroots are created by default in /var/tmp/archbuild. To build packages that depend on each other you should use makechrootpkg directly.

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

i686

$ setarch i686 sudo makechrootpkg -cr /var/tmp/archbuild/extra-i686 -- -i

next package

$ setarch i686 sudo makechrootpkg -r /var/tmp/archbuild/extra-i686

x86_64

$ sudo makechrootpkg -cr /var/tmp/archbuild/extra-x86_64 -- -i

next package

$ sudo makechrootpkg -r /var/tmp/archbuild/extra-x86_64

Packager && Makeflags

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

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

Generating rebuilding list when soname is bumped

$ sogrep <repo> <soname>
$ sogrep extra x264.so.107