====== Configuration makepkg ======
==== Define PACKAGER ====
$ sed -e 's|#PACKAGER="John Doe "|PACKAGER="Libre U. "|' -i /etc/makepkg.conf
==== Define GPG-ID PACKAGER ====
$ sed -e 's|#GPGKEY=""|GPGKEY="user-id"|' -i /etc/makepkg.conf
==== Generate new checksums ====
$ updpkgsums
==== Clear librechroot ====
$ doas librechroot clean-repo
==== Build environments: ====
$ doas librechroot -A x86_64 -n x86_64 make
$ doas librechroot -A i686 -n i686 make
===== Advanced =====
$ doas librechroot -C /etc/pacman.conf -M /usr/share/pacman/defaults/makepkg.conf.i686 -n i686 make
==== Enter Container ====
$ doas librechroot -n x86_64 enter
$ doas librechroot -n i686 enter
==== Compile: ====
$ doas libremakepkg -n x86_64
$ doas libremakepkg -n i686
==== Update container ====
$ doas librechroot update
$ doas librechroot -n i686 update
==== Enable networking during compilation ====
$ doas libremakepkg -N
==== Uploading package ====
$ librestage
==== Write patch ====
$ git diff --no-prefix --no-index --no-renames --binary a b > parche.patch
> repo where to put the package eg. core, extra, community
$ librerelease
==== Example config doas ====
$ doas nano -w /etc/doas.conf
## doas configuration file.
##
## See the doas man page for the details on how to write a configuration file.
##
## Allow members of group wheel to execute any command
permit persist :wheel
## Same thing without a password
#permit nopass :wheel
## Allow user freedom to run procmap as root without a password
#permit nopass freedom as root cmd /usr/sbin/procmap
## Allow members of group power to execute power commands
permit nopass :power cmd openrc-shutdown
permit nopass :power cmd runit-halt
permit nopass :power cmd runit-shutdown
permit nopass :power cmd halt
permit nopass :power cmd poweroff
permit nopass :power cmd reboot
permit nopass :power cmd shutdown
## Allow root user to execute any command
permit nopass root
===== Configuration chroot for Hyperbola v0.4 =====
==== Change repos ====
First copy the file `pacman.conf`
$ wget https://paste.debian.net/plain/1199102 -O /tmp/pacman.conf
$ doas librechroot -C /tmp/pacman.conf make
==== Change mirrors ====
$ wget https://paste.debian.net/plain/1199103 -O /tmp/mirrorlist
$ doas cp -av /tmp/mirrorlist /var/lib/archbuild/default//etc/pacman.d/mirrorlist
== Attach the mirrors: ==
$ doas chattr +i /var/lib/archbuild/default//etc/pacman.d/mirrorlist
== Comment line 83 fom generated container `/usr/lib/libretools/chroot/arch-nspawn` ==
$ doas sed -e 's|echo "Server = $host_mirror" >"$working_dir/etc/pacman.d/mirrorlist"|#echo "Server = $host_mirror" >"$working_dir/etc/pacman.d/mirrorlist"|g' -i /usr/lib/libretools/chroot/arch-nspawn
==== Update container ====
$ doas librechroot update