-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add alsa-lib package Signed-off-by: jaudiger <[email protected]> * Update project name of also_lib Co-authored-by: Kyle Lacy <[email protected]> --------- Signed-off-by: jaudiger <[email protected]> Co-authored-by: Kyle Lacy <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import * as std from "std"; | ||
|
||
export const project = { | ||
name: "alsa_lib", | ||
version: "1.2.12", | ||
}; | ||
|
||
const source = std | ||
.download({ | ||
url: `https://www.alsa-project.org/files/pub/lib/alsa-lib-${project.version}.tar.bz2`, | ||
hash: std.sha256Hash( | ||
"4868cd908627279da5a634f468701625be8cc251d84262c7e5b6a218391ad0d2", | ||
), | ||
}) | ||
.unarchive("tar", "bzip2") | ||
.peel(); | ||
|
||
export default (): std.Recipe<std.Directory> => { | ||
const alsaLib = std.runBash` | ||
./configure --prefix=/ | ||
make install DESTDIR="$BRIOCHE_OUTPUT" | ||
` | ||
.workDir(source) | ||
.dependencies(std.toolchain()) | ||
.toDirectory(); | ||
|
||
return std.setEnv(alsaLib, { | ||
CPATH: { path: "include" }, | ||
LIBRARY_PATH: { path: "lib" }, | ||
PKG_CONFIG_PATH: { path: "lib/pkgconfig" }, | ||
}); | ||
}; |