Actually that's not the only issue. I'd apply this, Google expects that the tree match Git.
diff --git a/PKGBUILD b/PKGBUILD
index 16acecf..a4686ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@
# Contributor: Rustmilian <Rustmilian@proton.me>
pkgname=depot-tools-git
-pkgver=r9435.249e9a26c
+pkgver=r10037.b4e466e61
pkgrel=1
pkgdesc='Tools for working with Chromium development'
arch=(x86_64)
@@ -29,36 +29,27 @@ pkgver() {
}
package() {
- install -d "$pkgdir/opt/"
- cp -r "$srcdir/depot_tools/" "$pkgdir/opt/depot_tools/"
- chmod 775 "$pkgdir/opt/depot_tools/"
- # 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 -v -d "$pkgdir/opt/"
+ cp -v -r "$srcdir/depot_tools/" "$pkgdir/opt/depot_tools/"
+ chmod -v 775 "$pkgdir/opt/depot_tools/"
# Install license
- install -d "$pkgdir/usr/share/licenses/$pkgname/"
- mv "$pkgdir/opt/depot_tools/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
+ install -v -d "$pkgdir/usr/share/licenses/$pkgname/"
+ ln -v -s "/opt/depot_tools/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Install man pages
- install -d "$pkgdir/usr/share/man/"
- mv "$pkgdir/opt/depot_tools/man/"man[0-8]/ "$pkgdir/usr/share/man/"
+ install -v -d "$pkgdir/usr/share/man/"
+ cp -v -r "$pkgdir/opt/depot_tools/man/"man[0-8]/ "$pkgdir/usr/share/man/"
# Install docs
install -d "$pkgdir/usr/share/doc/$pkgname/"
- mv "$pkgdir/opt/depot_tools/man/html/" "$pkgdir/usr/share/doc/$pkgname/"
- mv "$pkgdir/opt/depot_tools/"README* "$pkgdir/usr/share/doc/$pkgname/"
-
- # Remove man/ leftovers
- rm -r "$pkgdir/opt/depot_tools/man/"
+ cp -v -r "$pkgdir/opt/depot_tools/man/html/" "$pkgdir/usr/share/doc/$pkgname/"
+ cp -v -r "$pkgdir/opt/depot_tools/"README* "$pkgdir/usr/share/doc/$pkgname/"
# Install bash completions
- install -Dm0644 "$pkgdir/opt/depot_tools/gclient_completion.sh" "$pkgdir/usr/share/bash-completion/completions/gclient"
- install -Dm0644 "$pkgdir/opt/depot_tools/git_cl_completion.sh" "$pkgdir/usr/share/bash-completion/completions/git-cl"
+ install -v -Dm0644 "$pkgdir/opt/depot_tools/gclient_completion.sh" "$pkgdir/usr/share/bash-completion/completions/gclient"
+ install -v -Dm0644 "$pkgdir/opt/depot_tools/git_cl_completion.sh" "$pkgdir/usr/share/bash-completion/completions/git-cl"
# Install zsh completions
- install -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions/" "$pkgdir/opt/depot_tools/zsh-goodies/_gclient"
+ install -v -Dm0644 -t "$pkgdir/usr/share/zsh/site-functions/" "$pkgdir/opt/depot_tools/zsh-goodies/_gclient"
}
Pinned Comments
alerque commented on 2021-09-23 08:19 (UTC)
Installers beware! This package is a fiasco and the upstream Git repository basically has bunch of binary blobs in it that do strange things. I'm working on cleaning up the packaging some but the upstream behavior is egregious. Wash your /opt/depot_tools directory out with soap and bleach when done.
relrel commented on 2020-10-30 11:30 (UTC)
depot_tools
is installed in/opt/depot_tools/
. This directory is not in$PATH
by default, so make sure toexport PATH=/opt/depot_tools:$PATH
before using it. Also, this directory has root permissions, so either use it as root, or if you want to use it as your currect user:Then re-login as your current user or log your terminal in to the newly created group: