From e2b09ff11b8f19757a0f296e3fcb2dcc5bffda35 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Thu, 24 Feb 2022 12:50:14 +0100 Subject: [PATCH] aurutils: 7 --- .SRCINFO | 7 ++++--- PKGBUILD | 7 ++++--- aurutils.changelog | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index cf148de..7abc97d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = aurutils pkgdesc = helper tools for the arch user repository - pkgver = 6.4 + pkgver = 7 pkgrel = 1 url = https://github.com/AladW/aurutils install = aurutils.install @@ -16,7 +16,8 @@ pkgbase = aurutils optdepends = zsh: zsh completion optdepends = devtools: aur-chroot optdepends = vifm: default pager - source = aurutils-6.4.tar.gz::https://github.com/AladW/aurutils/archive/refs/tags/6.4.tar.gz - sha256sums = ec0229983a33d6b45d6ab84dde08809fe324242de9807bed3658d1fcc9bded3f + optdepends = ninja: aur-sync ninja support + source = aurutils-7.tar.gz::https://github.com/AladW/aurutils/archive/refs/tags/7.tar.gz + sha256sums = e720ea19946e8dff747d98fd6f51b5b004d7f3e84de44fc62847e0f85a979837 pkgname = aurutils diff --git a/PKGBUILD b/PKGBUILD index e7f651d..39997f4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Alad Wenter # Co-Maintainer: Cedric Girard pkgname=aurutils -pkgver=6.4 +pkgver=7 pkgrel=1 pkgdesc='helper tools for the arch user repository' url='https://github.com/AladW/aurutils' @@ -10,12 +10,13 @@ license=('custom:ISC') source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") changelog=aurutils.changelog install=aurutils.install -sha256sums=('ec0229983a33d6b45d6ab84dde08809fe324242de9807bed3658d1fcc9bded3f') +sha256sums=('e720ea19946e8dff747d98fd6f51b5b004d7f3e84de44fc62847e0f85a979837') depends=('git' 'jq' 'pacutils' 'curl' 'expect') optdepends=('bash-completion: bash completion' 'zsh: zsh completion' 'devtools: aur-chroot' - 'vifm: default pager') + 'vifm: default pager' + 'ninja: aur-sync ninja support') prepare() { cd "$pkgname-$pkgver" diff --git a/aurutils.changelog b/aurutils.changelog index 73c36d6..116a978 100644 --- a/aurutils.changelog +++ b/aurutils.changelog @@ -1,3 +1,25 @@ +## 7 + +This release adds optional support for the `ninja` build system. If the +`AUR_SYNC_USE_NINJA` environment variable is set to a positive value, +`aur-sync` will generate `build.ninja` where each target has an `aur-build` +command-line. This allows to continue building a series of packages when +several failed, with the maximum of failed targets controlled by the `-k` / +`--keep-going` option. On failure, a summary of successful ("OK") and failed +("FAIL") package builds is printed. The `--no-build` option in turn only +generates `build.ninja`, and prints the corresponding directory to `stdout`. + +The logic to generate `build.ninja` files is exposed in the `aur-sync--ninja` +script. It can be used with other `aur` programs that output `pkgbase +depends_pkgbase` pairs, for example: + + $ aur depends --graph "$@" | aur sync--ninja "$PWD" -- aur build + +When running `ninja` on the resulting file, each successfully built `pkgbase` +will result in a `pkgbase.stamp` file. If the corresponding `PKGBUILD` is +modified, it will be marked for rebuilding by `ninja`. This can for example be +used for a git repository which hosts multiple `PKGBUILD` directories. + ## 6.4 * `aur-depends`