diff options
author | Rustmilian | 2023-03-18 17:17:05 -0400 |
---|---|---|
committer | Caleb Maclennan | 2023-03-19 12:05:31 +0300 |
commit | 97b82e4c590cacfede9c7571dd038c0ea7d90a19 (patch) | |
tree | 998b899cbb1ab91fc7b4e84820ce547d9004f234 | |
parent | 85126ea9ab5fe7b9fc21a15bf2b1f62ee259fbe8 (diff) | |
download | aur-97b82e4c590cacfede9c7571dd038c0ea7d90a19.tar.gz |
Handle depot-tools-git TODOs
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 11 insertions, 21 deletions
@@ -1,6 +1,6 @@ pkgbase = depot-tools-git pkgdesc = Tools for working with Chromium development - pkgver = r9431.c5b38329e + pkgver = r9435.249e9a26c pkgrel = 1 url = https://chromium.googlesource.com/chromium/tools/depot_tools install = depot-tools-git.install @@ -9,9 +9,10 @@ # Contributor: Andreas Schrafl <aschrafl@gmail.com> # Contributor: piojo <aur@zwell.net> # Contributor: hack.augusto <hack.augusto@gmail.com> +# Contributor: Rustmilian <Rustmilian@proton.me> pkgname=depot-tools-git -pkgver=r9431.c5b38329e +pkgver=r9435.249e9a26c pkgrel=1 pkgdesc='Tools for working with Chromium development' arch=(x86_64) @@ -31,24 +32,12 @@ package() { install -d "$pkgdir/opt/" cp -r "$srcdir/depot_tools/" "$pkgdir/opt/depot_tools/" chmod 775 "$pkgdir/opt/depot_tools/" - - rm -rf "$pkgdir/opt/depot_tools/.git/" - - # Make Windows files non-executable - chmod a-x "$pkgdir/opt/depot_tools/"*.bat - - # TODO: Consider removing unneeded files, for example: - # .git{ignore,attributes} - # *OWNERS - # WATCHLISTS - # bootstrap/ - # infra/ - # ninja-{mac,linux32} - # *.bat - # testing_support/ - # tests/ - # win32imports.py - # win_toolchain/ + # Remove Git + rm -rf "${pkgdir}/opt/depot_tools/"{.git,.gitignore,.gitattributes} + # Remove Windows + rm -r "${pkgdir}/opt/depot_tools/"{*.bat,win32imports.py,win_toolchain} + # Remove Misc + rm -r "${pkgdir}/opt/depot_tools/"{bootstrap,infra,testing_support,tests,OWNERS,WATCHLISTS} # Install license install -d "$pkgdir/usr/share/licenses/$pkgname/" @@ -71,5 +60,6 @@ package() { mv "$pkgdir/opt/depot_tools/gclient_completion.sh" "$pkgdir/usr/share/bash-completion/completions/gclient" mv "$pkgdir/opt/depot_tools/git_cl_completion.sh" "$pkgdir/usr/share/bash-completion/completions/git-cl" - # TODO: Install zsh-goodies/? + # Install zsh completions + install -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions/" "$pkgdir/opt/depot_tools/zsh-goodies/_gclient" } |