brew install labstreaminglayer/tap/<formula>
Or brew tap labstreaminglayer/tap and then brew install <formula>.
brew help, man brew or check Homebrew's documentation.
Update the tar.gz URL, then download the file and calculate the sha sum:
curl -sL https://github.com/sccn/liblsl/archive/refs/tags/v1.17.7.tar.gz | shasum -a 256