The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system. See documentation
- The Core Planners: chef-core-planners@chef.io
Library package
Library packages can be set as runtime or build time dependencies, however they are typically used as buildtime dependencies. See Defining your dependencies for more information.
To add core/alsa-lib as a dependency, you can add one of the following to your plan file.
pkg_build_deps=(core/alsa-lib)
pkg_deps=(core/alsa-lib)
To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.
hab pkg install core/alsa-lib --binlink
will add the following binary to the PATH:
- /bin/aserver
For example:
[7][default:/src/alsa-lib:100]# hab pkg install core/alsa-lib --binlink
» Installing core/alsa-lib
☁ Determining latest version of core/alsa-lib in the 'stable' channel
→ Found newer installed version (core/alsa-lib/1.1.9/20200811102940) than remote version (core/alsa-lib/1.1.9/20200404040530)
→ Using core/alsa-lib/1.1.9/20200811102940
★ Install of core/alsa-lib/1.1.9/20200811102940 complete with 0 new packages installed.
» Binlinking aserver from core/alsa-lib/1.1.9/20200811102940 into /bin
★ Binlinked aserver from core/alsa-lib/1.1.9/20200811102940 to /bin/aserver
[8][default:/src/alsa-lib:0]#
To view the library files first get the habitat installation directory
hab pkg path core/alsa-lib
/hab/pkgs/core/alsa-lib/1.1.9/20200811102940
Then list the libraries, for example:
ls -1 $(hab pkg path core/alsa-lib)
...
...
bin
include
lib
share
Same as above.
You can now use the binary as normal. For example:
/bin/aserver --help
or aserver --help
[10][default:/src/alsa-lib:0]# aserver --help
Usage: aserver [OPTIONS] server
--help help