yktoo / indicator-sound-switcher

Sound input/output selector indicator for Linux
https://yktoo.com/en/software/sound-switcher-indicator/
GNU General Public License v3.0
365 stars 28 forks source link

AUR package #103

Closed patzm closed 3 years ago

patzm commented 3 years ago

hi @yktoo, I really like this package. Sadly, it got removed from the AUR some time ago. Today I found the time and took the liberty of writing and releasing a package for it. I hope this is fine by you. If yes, should I file a PR to add it to the installation instructions of this repo?

yktoo commented 3 years ago

Hi @patzm, thanks!

I think it's fine to put your steps here, in this thread. The thing is, the instal.md document is not really complete nor up-to-date. The most actual (and bilingual) version is normally kept on my website.

Going forward, perhaps it'd make sense to somehow integrate the AUR release into the overall build process, could you elaborate on how you did that?

patzm commented 3 years ago

I got some cool feedback in this reddit post. I incorporated that. TLDR: the new package name on the AUR is now indicator-sound-switcher (without the -git suffix). Link: https://aur.archlinux.org/packages/indicator-sound-switcher/ The AUR has an awesome WIKI. In essence, the key instructions are here. But in short, you would have to do the following:

  1. enable authentication link:
    1. create an account in the AUR
    2. upload you public ssh key to your account
  2. run
    git clone ssh://aur@aur.archlinux.org/indicator-sound-switcher.git
    cd indicator-sound-switcher
    # change PKGBUILD, probably just updating the version tag and md5 sum
    makepkg --printsrcinfo > .SRCINFO
    git add PKGBUILD .SRCINFO
    git commit -m "useful commit message"
    git push

I am not sure if I have to add you as a maintainer. I think you can simply push to that repo and that itself is a release. If that is the case, just ping me :wink:.

yktoo commented 3 years ago

Thanks, that's handy, we'll check how it'll fly next time.

As I'm not familiar with AUR/Arch, could you please provide some instructions for the Installation document so I can amend it on my website?

patzm commented 3 years ago

Sure. I would add something like the following. I will write it in valid markdown right away, so I suggest you edit my comment to copy the literal version of it.

Arch

This installation method assumes that any AUR helper is already installed, specifically any of the pacman wrappers. For instance, if you are using yay, simply run:

yay -S indicator-sound-switcher

If you don't want to use any helper, refer to this article on how to manually build and install packages from AUR. Download the PKGBUILD from here (right hand side, e.g. View PKGBUILD or Download snapshot).

yktoo commented 3 years ago

Thanks @patzm, the info is incorporated into the SSI web page.