Closed falko closed 2 months ago
Maybe we have to specify --bin-dir
and --install-dir
as shown here: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli
@Mar0xy I know you stepped down as a maintainer because of the high release cadence but could you have a look into this?
I'll look into this.
diff --git a/packages/aws-cli-v2-bin/aws-cli-v2-bin.pacscript b/packages/aws-cli-v2-bin/aws-cli-v2-bin.pacscript
index d9254992..67c96aa0 100644
--- a/packages/aws-cli-v2-bin/aws-cli-v2-bin.pacscript
+++ b/packages/aws-cli-v2-bin/aws-cli-v2-bin.pacscript
@@ -9,16 +9,8 @@ replace="awscli"
repology=("project: awscli")
hash="20826e1647c45c1e28715eb32dd073e8106c9a11506624af6e4c2d628fac9f92"
-prepare() {
- true
-}
-
-build() {
- true
-}
-
install() {
- sudo ./install --install-dir "${STOWDIR}/${name}/usr/local/aws-cli" --bin-dir "/usr/local/bin"
+ sudo ./install --bin-dir "${pkgdir}/usr/local/bin"
# bash autocompletion
echo "complete -C '/usr/local/bin/aws_completer' aws" > "aws-cli_bash_completion"
Does this work for you @falko?
I would have expected sudo ./install --install-dir "/usr/local/aws-cli" --bin-dir "/usr/local/bin"
because that's where dpkg --listfiles
shows the files:
dpkg_--listfiles_aws-cli-v2-bin.txt
@Henryws How can I try your patch?
I would have expected
sudo ./install --install-dir "/usr/local/aws-cli" --bin-dir "/usr/local/bin"
because that's wheredpkg --listfiles
shows the files: dpkg_--listfiles_aws-cli-v2-bin.txt
Yeah but it needs to be installed to a staging directory, not the raw file system.
@Henryws How can I try your patch?
Edit the Pacscript during installation (it will prompt you), then replace:
install() {
sudo ./install --install-dir "${STOWDIR}/${name}/usr/local/aws-cli" --bin-dir "/usr/local/bin"
}
with
install() {
sudo ./install --bin-dir "${pkgdir}/usr/local/bin"
}
The package
aws-cli-v2-bin
creates broken symlinks, e.g.The folder
/usr/src/pacstall/aws-cli-v2-bin
does not exist and should not be part of the links.