Skip to content

Commit

Permalink
main/firmware-sof: restore versioned symlinks
Browse files Browse the repository at this point in the history
As a matter of fact apk cannot properly transition things because
it broke for me on upgrade (the sof directory just went poof and
there were no files) and there are other people reporting semingly
the same stuff:

https://www.reddit.com/r/chimeralinux/comments/1fxgkbu/audio_doesnt_work_after_installing_pipewire/

Doing the reverse thing results in an error on upgrade, so one
has to run apk fix, but nothing we can do...
  • Loading branch information
q66 committed Oct 6, 2024
1 parent 0d26376 commit 91e13b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main/firmware-sof/template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname = "firmware-sof"
pkgver = "2024.09"
pkgrel = 0
pkgrel = 1
archs = ["x86_64"]
install_if = [self.with_pkgver("base-firmware-sof")]
pkgdesc = "Sound Open Firmware"
Expand All @@ -20,7 +20,8 @@ def install(self):
"sof-ipc4-tplg",
"sof-tplg",
]:
self.install_files(folder, "usr/lib/firmware/intel")
self.install_files(folder, "usr/lib/firmware/intel", name=f"{folder}-v{pkgver}")
self.install_link(f"usr/lib/firmware/intel/{folder}", f"{folder}-v{pkgver}")
# compat link, following the default install.sh
self.install_link("usr/lib/firmware/intel/sof-ace-tplg", "sof-ipc4-tplg")
self.install_license("LICENCE.NXP")
Expand Down

0 comments on commit 91e13b0

Please sign in to comment.