From e6670fce608c250efe2b320ef72a1454267a88e0 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Fri, 16 Oct 2020 00:16:10 +0000 Subject: [PATCH] added remove option to remove official packages --- README.org | 47 +++++++++++++++++++++++++++++++---------------- 1 files changed, 31 insertions(+), 16 deletions(-) diff --git a/README.org b/README.org index bb0cfce..ef47213 100755 --- a/README.org +++ b/README.org @@ -1,16 +1,26 @@ #+TITLE: Auto-build package repository for Arch Linux * What is this? -This is a package autobuild solution for Arch Linux. -It supports the automated building of packages from the AUR. +This is an automatic package building solution for Arch Linux. +It supports building packages from PKGBUILDs attached to git repositories, such as the AUR. -Currently it supports package signing and building clean from source. -It can help to set itself up and generate GPG keys if need be. +Currently it supports package signing and building clean from source (untested). +It can help to set itself up and generate GPG keys if need be (partially tested). +Notifications can be sent using the sendmail command, which is supported in Postfix and OpenSMTPD. -The chroot files are here from an older version of this project and are here as I think they're interesting. +The chroot generation script is here from an older version of this project and I think its interesting. + +* Features +- Automatic building from the AUR +- Automatic rebuilding of git packages +- Parallel builds to speed up the build process +- Package signing +- Clean building +- Automated set up +- Supports multiple targets from a single PKGBUILD * Set-up -Edit the variables at the top of ~main.sh~ to suit your repository details. +Edit the variables in ~vars.sh~ to suit your repository details. Have a look at the init function near the bottom of the file to decide if you want to run it. If you decide to generate a GPG key, edit the name, comment and email so that it fits you. @@ -19,16 +29,21 @@ ccache may be useful to decrease the times of git packages, due to the little changes. * Usage -To add a package ~main.sh add [package]~ should be run. Currently I only support adding one package at a time. -To update all packages, use ~main.sh build-all~. A ~-f~ flag can be used to force a rebuild of all the packages. +To add a package ~main.sh add [package]~ should be run. +If a package fails to build, it can be manually rebuilt by reading it. +I find that removing and reading often solves any problems. + +Packages can be removed with ~main.sh remove [package]~. +This remove it from the repo, build folder and deletes any built versions in the repository directory. + +To update all packages, use ~main.sh build-all~. +A ~-f~ flag can be used to force a rebuild of all the packages. To allow automatic building, use a cronjob or write a systemd unit, there are many guides out there, although I may add examples if I feel like it. * To Dos -- Multiple packages from a single PKGBUILD :: - Some PKGBUILDs can create many packages at once, currently I am unable to handle this. -- AUR dependency checking and automatic resolution :: - Something like what aurutils does, maybe I can steal it from there -- Error catching for builds which fail. :: - Have emailing, but nothing more advanced. Would be nice to have some basic error handling in the script -- Create a universal variables file :: - Not sure how useful this would be, but could be nice +# - Multiple packages from a single PKGBUILD :: Some PKGBUILDs can create many packages at once, currently I am unable to handle this. +- AUR dependency checking and automatic resolution :: Something like what aurutils does, maybe I can steal it from there +- Error catching for builds which fail. :: Have emailing, but nothing more advanced. Would be nice to have some basic error handling in the script +# - Create a universal variables file :: Not sure how useful this would be, but could be nice +# - Build parallelism :: Try and make packages build in parallel, place a lock on the repo file. +# - Add or remove multiple packages at a time :: Make it less tedious to add packages -- Gitblit v1.9.3