leftwm / leftwm-theme

A tool to help manage themes for LeftWM
BSD 3-Clause "New" or "Revised" License
117 stars 12 forks source link

Manual install instructions #5

Closed bmclean2 closed 3 years ago

bmclean2 commented 3 years ago

In the manual system-wide install instructions cargo install --root=/usr/bin didn't work. I had to use cargo install --root /usr --path <path to repo directory> (I actually used --root /usr/local) once cd'ing into the cloned directory. So the syntax should exclude = and remove the /bin and, at least for me, it would not install without --path.

mautamu commented 3 years ago

Ah, so it should be something akin to

sudo cargo install --path $(pwd) --root /usr/

?

Probably ought to copy the leftwm documentation and use

# General Builds
sudo install -s -Dm755 ./target/release/leftwm-theme -t /usr/bin
# Developer
sudo ln -s "$(pwd)"/target/release/leftwm-theme /usr/bin/leftwm-theme
bmclean2 commented 3 years ago

Ah, so it should be something akin to

sudo cargo install --path $(pwd) --root /usr/

?

Yes

Probably ought to copy the leftwm documentation and use

# General Builds
sudo install -s -Dm755 ./target/release/leftwm-theme -t /usr/bin
# Developer
sudo ln -s "$(pwd)"/target/release/leftwm-theme /usr/bin/leftwm-theme

Agreed. Just tried this for general builds and can confirm it works.

mautamu commented 3 years ago

Awesome! Thank you for calling attention to this! I will try to get around to fixing this tomorrow and checking the PKGBUILD to make sure it uses the right method as well.

bmclean2 commented 3 years ago

Thanks! Also, just so you're aware, when I try to do the PKGBUILD on yay I get the following error error: no such subcommand: '+nightly'

mautamu commented 3 years ago

I have submitted a new PKGBUILD to the AUR which shouldn't require the +nightly flag, hopefully it works! Thank you again for calling these two issues to attention!