From 46a733bf8137cf574ab3ce84cff220cef3e1c7ea Mon Sep 17 00:00:00 2001
From: Chizi123 <joelgrun@gmail.com>
Date: Fri, 23 Aug 2019 01:26:57 +0000
Subject: [PATCH] Merge branch 'master' of https://github.com/Chizi123/Arch-autobuild-repo

---
 README.org |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/README.org b/README.org
old mode 100644
new mode 100755
index d7f5f6e..1d4450d
--- a/README.org
+++ b/README.org
@@ -3,16 +3,26 @@
 * What is this?
 This is a set of files to auto-build a personal repository for Arch.
 It uses a chroot environment to build the packages, so that a build environment can be made on a server running a non-arch operating system.
+
 * Set-up
-Create a chroot environment named "chroot" in the current directory.
-Copy the ~build.sh~ script to ~/build/repo~ within the chroot.
-Script coming soon.
+Edit ~create_chroot.sh~ variables at the top to your details.
+Run ~sudo create_chroot.sh~, and create the git repository in ~/build/repo~ when prompted, with a remote repository.
+
+You may also want to set ~MAKEFLAGS="-j$(nproc)"~ within the chroot to enable parallel compilation.
+For xz compression, add the ~--threads=0~ option to COMPRESSXZ such that it reads ~COMPRESSXZ=(xz -c -z - --threads=0)~.
+ccache may be useful to decrease the times of git packages, due to the little changes.
+
 * Usage
 All scripts must be run as root.
 To enter the chroot, use the ~enter_chroot.sh~ script.
 To add a package from the AUR, use the ~add_package.sh~ script, with the git URL as the argument.
 To build the packages use the ~build_packages.sh~ script, which will enter the chroot, and build the packages from the PKGBUILDs stored in ~/build/repo~.
+
 The packages are built and put into the directory ~/build/repo/x86_64~, then pushed with git.
 Only the latest packages are stored in ~/build/repo/x86_64~ to avoid multiple older versions building up.
-Since git is used, be sure to sign in to git in the chroot and set ~git config --global credential.helper store~, with an appropriate remote repository.
-To enable automatic building, create a cronjob for root, something of the sort of ~* 12 * * * /path/to/dir/build_packages.sh~.
+
+To enable automatic building, create a cronjob for root, something of the sort of ~0 12 * * * /path/to/dir/build_packages.sh~ to build ever day at noon.
+
+* To Dos
+- Error catching for builds which fail.
+- Create a universal variables file

--
Gitblit v1.9.3