summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlad Wenter2022-02-24 12:50:14 +0100
committerAlad Wenter2022-02-24 12:50:14 +0100
commite2b09ff11b8f19757a0f296e3fcb2dcc5bffda35 (patch)
treee6d3c05c7a1a31d24504dbfc35e4f1bec4d93b7f
parente0bb24d63fbb076226ceeea0ffefc5cb75481a25 (diff)
downloadaur-e2b09ff11b8f19757a0f296e3fcb2dcc5bffda35.tar.gz
aurutils: 7
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD7
-rw-r--r--aurutils.changelog22
3 files changed, 30 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cf148dea39d0..7abc97dc74f8 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 e7f651d25863..39997f4b4176 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Alad Wenter <https://github.com/AladW>
# Co-Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
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 73c36d6abe51..116a97841935 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`