diff options
author | Christoph Haag | 2022-02-14 16:47:53 +0100 |
---|---|---|
committer | Christoph Haag | 2022-02-14 16:49:22 +0100 |
commit | cc2cba7aab0f6547b0b666f491437936bb91c229 (patch) | |
tree | 97be9d3f6dc02478d2d0f5034b5ec291b1823679 /PKGBUILD | |
download | aur-chromium-post-build-ninja-summary-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..111530d61100 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Christoph Haag <christoph.haag@collabora.com> +pkgname=chromium-post-build-ninja-summary-git +pkgver=20220214g54e30e704363e80a20bff934c6bf1f9d1f706d1c +pkgrel=1 +pkgdesc="Summarize the last ninja build, with timings" +arch=('any') +url="https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/refs/heads/main/post_build_ninja_summary.py" +license=('BSD') +depends=("python") +makedepends=("wget" "coreutils") +source=() + +pkgver() { + rm -f main + wget 'https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/refs/heads/main' + echo "$(date +%Y%m%d)g$(grep -oP '(?<=commit</th><td>)[0-9a-z]*' main)" +} + +build() { + wget 'https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/refs/heads/main/post_build_ninja_summary.py?format=TEXT' -O - | base64 -d > post_build_ninja_summary.py +} + +package() { + install -d "$pkgdir"/usr/bin + install -m755 post_build_ninja_summary.py "$pkgdir"//usr/bin +} |