Skip to content

Commit

Permalink
chore: refactor proprietary package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalOughtness authored Oct 30, 2024
1 parent 5eeef63 commit 70e5c47
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 14 deletions.
25 changes: 25 additions & 0 deletions files/scripts/installproprietarypackages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# Tell build process to exit if there are any errors.
set -oue pipefail

curl -Lo /etc/yum.repos.d/negativo17-fedora-multimedia.repo https://negativo17.org/repos/fedora-multimedia.repo
sed -i '0,/enabled=1/{s/enabled=1/enabled=1\npriority=90/}' /etc/yum.repos.d/negativo17-fedora-multimedia.repo

rpm-ostree override replace \
--experimental \
--from repo='fedora-multimedia' \
libheif \
libva \
libva-intel-media-driver \
mesa-dri-drivers \
mesa-filesystem \
mesa-libEGL \
mesa-libGL \
mesa-libgbm \
mesa-libglapi \
mesa-libxatracker \
mesa-va-drivers \
mesa-vulkan-drivers \
gstreamer1-plugin-libav \
gstreamer1-plugin-vaapi
32 changes: 18 additions & 14 deletions recipes/common/common-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,26 +117,26 @@ modules:
- breeze-icon-theme
- papirus-icon-theme

# proprietary stuff
- libheif-freeworld
- libheif-tools
- intel-media-driver
- mesa-va-drivers-freeworld
- gstreamer1-plugin-libav
- gstreamer1-plugins-bad-free-extras
- gstreamer1-plugins-bad-freeworld
- gstreamer1-plugins-ugly
- gstreamer1-vaapi
- type: script
scripts:
- installproprietarypackages.sh

- type: rpm-ostree
install:
- heif-pixbuf-loader
- ffmpeg
- ffmpeg-libs
- ffmpegthumbnailer
- pipewire-codec-aptx
- fdk-aac

- pipewire-libs-extra
- libfdk-aac
- gstreamer1-plugins-bad
- gstreamer1-plugins-ugly
remove:
- gstreamer1-plugins-bad-free
- gstreamer1-plugins-bad-free-libs
- gstreamer1-plugins-ugly-free
- fdk-aac-free
- ffmpeg-free
- mesa-va-drivers
- libavcodec-free
- libavdevice-free
- libavfilter-free
Expand All @@ -146,6 +146,10 @@ modules:
- libswresample-free
- libswscale-free

- type: script
scripts:
- removeunusedrepos.sh

- type: files
files:
- source: system/usr
Expand Down

0 comments on commit 70e5c47

Please sign in to comment.