Skip to content

Commit

Permalink
feat: Add winesync
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Oct 7, 2023
1 parent b726c52 commit 2a90fe6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ RUN if grep -qv "surface" <<< "${KERNEL_FLAVOR}"; then \
/tmp/build-kmod-ryzen-smu.sh && \
/tmp/build-kmod-steamdeck.sh && \
/tmp/build-kmod-v4l2loopback.sh && \
/tmp/build-kmod-winesync.sh && \
/tmp/build-kmod-wl.sh && \
if grep -qv "39" <<< ${FEDORA_MAJOR_VERSION}; then \
/tmp/build-kmod-evdi.sh && \
Expand Down
19 changes: 19 additions & 0 deletions build-kmod-winesync.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -oeux pipefail

cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/

ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"


### BUILD winesync (succeed or fail-fast with debug output)
rpm-ostree install \
akmod-winesync-*.fc${RELEASE}.${ARCH}
akmods --force --kernels "${KERNEL}" --kmod winesync
modinfo /usr/lib/modules/${KERNEL}/extra/winesync/winesync.ko.xz > /dev/null \
|| (find /var/cache/akmods/winesync/ -name \*.log -print -exec cat {} \; && exit 1)

rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo

0 comments on commit 2a90fe6

Please sign in to comment.