diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b51e455..f18f61a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,7 @@ jobs: # !! Add your recipes here - recipe.yml steps: + # the build is fully handled by the reusable github action - name: Build Custom Image uses: blue-build/github-action@v1.8 diff --git a/files/scripts/install-xpadneo.sh b/files/scripts/install-xpadneo.sh new file mode 100644 index 0000000..a6c8930 --- /dev/null +++ b/files/scripts/install-xpadneo.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -oue pipefail + +echo "INFO: grab kernel module" +KERNEL_VER=$(ls /lib/modules | head -n 1) +echo $KERNEL_VER + +echo "INFO: grab xpad modules" +MODULE_VER=$(ls /usr/src | grep xpadneo | sed 's/-/\//') +echo $MODULE_VER + +echo "INFO: build and install xpadneo" +sudo dkms build -m $MODULE_VER -k $KERNEL_VER +sudo dkms install -m $MODULE_VER -k $KERNEL_VER \ No newline at end of file diff --git a/recipes/components/dnf-module.yml b/recipes/components/dnf-module.yml index 18739dd..524299c 100644 --- a/recipes/components/dnf-module.yml +++ b/recipes/components/dnf-module.yml @@ -4,11 +4,9 @@ modules: copr: - ublue-os/packages - solopasha/hyprland - - atim/xpadneo - peterwu/rendezvous - nonfree: rpmfusion + nonfree: negativo17 install: - skip-unavailable: true packages: # sddm - sddm @@ -121,8 +119,8 @@ modules: - gamescope # for performance view - mangohud - # controller - - xpadneo + # xpadneo + - dkms-xpadneo remove: packages: @@ -131,7 +129,7 @@ modules: - firefox-langpacks replace: - - from-repo: rpmfusion-nonfree + - from-repo: fedora-multimedia packages: - libheif - libva @@ -143,4 +141,8 @@ modules: - mesa-libgbm - mesa-va-drivers - mesa-vulkan-drivers - - gstreamer1-plugin-libav \ No newline at end of file + - gstreamer1-plugin-libav + + - type: script + scripts: + - install-xpadneo.sh \ No newline at end of file