pika-debian-bleedingedge/setup.sh

101 lines
2.4 KiB
Bash
Raw Normal View History

2024-01-12 14:29:46 +01:00
#! /bin/bash
mkdir -p /etc/apt/sources.list.d
# Clear /etc/apt/sources.list in favor of deb822 formats
2024-01-12 14:47:02 +01:00
tee /etc/apt/sources.list <<'EOF'
2024-01-12 14:29:46 +01:00
## This file is deprecated in PikaOS.
## See /etc/apt/sources.list.d/system.sources.
EOF
2024-01-12 14:47:02 +01:00
# Add Debian Repo
touch /etc/apt/sources.list.d/debian.sources
tee /etc/apt/sources.list.d/debian.sources <<'EOF'
X-Repolib-Name: Debian Sources
2024-01-12 14:29:46 +01:00
Enabled: yes
Types: deb deb-src
URIs: http://deb.debian.org/debian
Suites: sid experimental
Components: main contrib non-free non-free-firmware
X-Repolib-Default-Mirror: http://deb.debian.org/debian
Signed-by: /usr/share/keyrings/debian-archive-keyring.gpg
EOF
# Add Pika Repos
2024-01-12 14:47:02 +01:00
tee /etc/apt/sources.list.d/system.sources <<'EOF'
X-Repolib-Name: PikaOS System Sources
2024-01-12 14:29:46 +01:00
Enabled: yes
Types: deb
URIs: https://ppa.pika-os.com/
Suites: pikauwu
Components: main amdgpu rocm
2024-01-12 14:47:02 +01:00
X-Repolib-ID: system
2024-01-12 14:29:46 +01:00
X-Repolib-Default-Mirror: https://ppa.pika-os.com/
Signed-By: /etc/apt/keyrings/pika-keyring.gpg.key
EOF
# Add DMO Repos
tee /etc/apt/sources.list.d/dmo.sources <<'EOF'
X-Repolib-Name: Multimedia Sources
Enabled: yes
Types: deb
URIs: https://www.deb-multimedia.org
Suites: sid
Components: main non-free
X-Repolib-Default-Mirror: https://www.deb-multimedia.org/
Signed-By: /etc/apt/keyrings/deb-multimedia-keyring.gpg
EOF
2024-01-12 14:39:27 +01:00
# Get keyrings
mkdir -p /etc/apt/keyrings/
2024-01-12 14:55:00 +01:00
wget https://github.com/CosmicFusion/debian-bleedingedge/raw/main/pika-keyring.gpg.key -O /etc/apt/keyrings/pika-keyring.gpg.key
2024-01-12 14:39:27 +01:00
wget https://github.com/CosmicFusion/debian-bleedingedge/raw/main/deb-multimedia-keyring.gpg -O /etc/apt/keyrings/deb-multimedia-keyring.gpg
# Setup apt configration
mkdir -p /etc/apt/preferences.d/
tee /etc/apt/preferences.d/0-pika-debian-settings <<'EOF'
# Lower Debians's priority under pika's
Package: *
Pin: release a=experimental
Pin-Priority: 400
Package: *
Pin: release o=Debian
Pin-Priority: 400
2024-01-12 15:00:55 +01:00
Package: *libwebrtc-audio-processing*
Pin: release o=Unofficial Multimedia Packages
Pin-Priority: 100
2024-01-12 14:39:27 +01:00
Package: *
Pin: release o=Unofficial Multimedia Packages
Pin-Priority: 400
Package: *
Pin: release a=pikauwu,c=main
2024-01-12 15:00:55 +01:00
Pin-Priority: 390
2024-01-12 14:39:27 +01:00
EOF
tee /etc/apt/preferences.d/1-pika-radeon-settings <<'EOF'
Package: libhsa-runtime64*
Pin: release o=Debian
Pin-Priority: 100
Package: hipcc*
Pin: release o=Debian
Pin-Priority: 100
Package: rocm*
Pin: release o=Debian
Pin-Priority: 100
Package: *
Pin: release c=rocm
Pin-Priority: 450
Package: amdgpu-core amdgpu-pro-core amdgpu-dkms amdgpu-pro-lib32
Pin: release a=*
Pin-Priority: -10
EOF