Skip to content

Commit

Permalink
feat: Add alsa-lib package (#78)
Browse files Browse the repository at this point in the history
* feat: Add alsa-lib package

Signed-off-by: jaudiger <jeremy.audiger@ioterop.com>

* Update project name of also_lib

Co-authored-by: Kyle Lacy <kylewlacy@users.noreply.github.com>

---------

Signed-off-by: jaudiger <jeremy.audiger@ioterop.com>
Co-authored-by: Kyle Lacy <kylewlacy@users.noreply.github.com>
  • Loading branch information
jaudiger and kylewlacy committed Jul 23, 2024
1 parent 37ccc8f commit e3e03ae
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/alsa_lib/brioche.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions packages/alsa_lib/project.bri
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" },
});
};

0 comments on commit e3e03ae

Please sign in to comment.