pika-debian-bleedingedge/setup.sh

130 lines
14 KiB
Bash
Raw Normal View History

2024-01-12 14:29:46 +01:00
#! /bin/bash
2024-03-30 15:09:23 +01:00
2024-01-12 14:29:46 +01:00
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
2024-03-24 19:24:48 +01:00
# Add Pika Repos
2024-03-30 15:09:23 +01:00
tee /etc/apt/sources.list.d/system.sources <<'EOF'
X-Repolib-Name: PikaOS System Sources
Enabled: yes
Types: deb
URIs: https://ppa.pika-os.com/
Suites: pikauwu
Components: canary
X-Repolib-ID: system
X-Repolib-Default-Mirror: https://ppa.pika-os.com/
Signed-By: /etc/apt/keyrings/pika-keyring.gpg.key
EOF
2024-01-12 14:29:46 +01:00
# Add DMO Repos
tee /etc/apt/sources.list.d/dmo.sources <<'EOF'
X-Repolib-Name: Multimedia Sources
Enabled: yes
2024-03-24 19:18:37 +01:00
Types: deb deb-src
2024-01-12 14:29:46 +01:00
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-03-24 19:18:37 +01:00
# Add Neon Src
2024-05-08 16:57:24 +02:00
#tee /etc/apt/sources.list.d/neon.sources <<'EOF'
#X-Repolib-Name: KDE Neon Sources
#Enabled: yes
#Types: deb-src
#URIs: http://archive.neon.kde.org/user/
#Suites: jammy
#Components: main
#X-Repolib-Default-Mirror: http://archive.neon.kde.org/user/
#Signed-By: /etc/apt/keyrings/kde-neon-keyring.gpg.key
#EOF
2024-03-24 19:18:37 +01:00
2024-01-12 14:39:27 +01:00
# Get keyrings
mkdir -p /etc/apt/keyrings/
2024-03-24 18:53:20 +01:00
wget https://github.com/PikaOS-Linux/pika-base-debian-container/raw/main/pika-keyring.gpg.key -O /etc/apt/keyrings/pika-keyring.gpg.key
wget https://github.com/PikaOS-Linux/pika-base-debian-container/raw/main/deb-multimedia-keyring.gpg -O /etc/apt/keyrings/deb-multimedia-keyring.gpg
2024-05-08 16:57:24 +02:00
#wget https://github.com/PikaOS-Linux/pika-base-debian-container/raw/main/kde-neon-keyring.gpg.key -O /etc/apt/keyrings/kde-neon-keyring.gpg.key
2024-01-12 14:39:27 +01:00
# Setup apt configration
mkdir -p /etc/apt/preferences.d/
tee /etc/apt/preferences.d/0-pika-debian-settings <<'EOF'
2024-01-12 15:13:23 +01:00
# Blacklist Packages from being pulled from debian experimental
Package: *libwebrtc-audio-processing*
Pin: release a=experimental
Pin-Priority: 100
2024-03-29 13:17:43 +01:00
Package: *selinux*
Pin: release a=experimental
2024-04-04 15:10:19 +02:00
Pin-Priority: -1
2024-03-29 13:17:43 +01:00
2024-01-12 14:39:27 +01:00
Package: *
Pin: release a=experimental
2024-04-04 15:10:19 +02:00
Pin-Priority: -1
# Lower Debians's priority under pika's
2024-01-12 14:39:27 +01:00
Package: *
Pin: release o=Debian
Pin-Priority: 400
2024-04-04 15:10:19 +02:00
# We only want gnome from experimental
2024-07-14 20:34:21 +02:00
Package: adwaita-icon-theme adwaita-icon-theme-full at-spi2-core at-spi2-common at-spi2-core-udeb libatspi2.0-0 libatspi0-udeb libatspi2.0-dev gir1.2-atspi-2.0 at-spi2-doc libatk-adaptor libatk-adaptor-udeb libatk-bridge2.0-0 libatk-bridge-2.0-0-udeb libatk-bridge2.0-dev libatk1.0-0 libatk1.0-udeb libatk1.0-dev libatk1.0-doc gir1.2-atk-1.0 baobab gnome-calls gnome-calls-doc fonts-cantarell d-spy dspy-common libdspy-1-1 libdspy-dev libdconf1 libdconf-dev libdconf-doc dconf-cli dconf-gsettings-backend dconf-service dconf-editor libdevhelp-3-6 libdevhelp-dev devhelp devhelp-common gir1.2-devhelp-3.0 epiphany-browser epiphany-browser-data evince evince-common libevdocument3-4 libevview3-3 libevince-dev gir1.2-evince-3.0 evolution-data-server evolution-data-server-common evolution-data-server-tests evolution-data-server-dev evolution-data-server-doc libedataserver-1.2-27 libedataserver1.2-dev gir1.2-edataserver-1.2 libedataserverui-1.2-4 libedataserverui1.2-dev gir1.2-edataserverui-1.2 libedataserverui4-1.0-0 libedataserverui4-dev gir1.2-edataserverui4-1.0 libcamel-1.2-64 libcamel1.2-dev gir1.2-camel-1.2 libebook-1.2-21 libebook1.2-dev gir1.2-ebook-1.2 libedata-book-1.2-27 libedata-book1.2-dev gir1.2-edatabook-1.2 gir1.2-ebookcontacts-1.2 libebook-contacts-1.2-4 libebook-contacts1.2-dev libecal-2.0-2 libecal2.0-dev gir1.2-ecal-2.0 libedata-cal-2.0-2 libedata-cal2.0-dev gir1.2-edatacal-2.0 libebackend-1.2-11 libebackend1.2-dev gir1.2-ebackend-1.2 libfolks26 libfolks-dev libfolks-doc folks-common gir1.2-folks-0.7 libfolks-telepathy26 libfolks-telepathy-dev libfolks-telepathy-doc libfolks-eds26 libfolks-eds-dev libfolks-eds-doc libfolks-dummy26 libfolks-dummy-dev libfolks-dummy-doc folks-tools gcab libgcab-1.0-0 libgcab-dev libgcab-doc libgcab-tests gir1.2-gcab-1.0 gcr libgck-1-dev libgck-1-doc libgck-1-0 gir1.2-gck-1 libgcr-3-dev libgcr-3-doc libgcr-base-3-1 libgcr-ui-3-1 gir1.2-gcr-3 gcr4 libgck-2-dev libgck-2-doc libgck-2-2 gir1.2-gck-2 libgcr-4-dev libgcr-4-doc libgcr-4-4 gir1.2-gcr-4 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgdk-pixbuf-2.0-dev libgdk-pixbuf2.0-doc libgdk-pixbuf2.0-0-udeb libgdk-pixbuf-2.0-0-udeb gir1.2-gdkpixbuf-2.0 gdk-pixbuf-tests gdm3 libgdm1 libgdm-dev gir1.2-gdm-1.0 libgeocode-glib-2-0 libgeocode-glib-dev libgeocode-glib-doc gir1.2-geocodeglib-2.0 geocode-glib-tests geocode-glib-common libgexiv2-2 gir1.2-gexiv2-0.10 libgexiv2-dev libgexiv2-doc gi-docgen gi-docgen-doc gjs gjs-tests libgjs0g libgjs-dev libglib2.0-0 libglib2.0-tests libglib2.0-udeb libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libglib2.0-data libglib2.0-doc glib-networking glib-networking-services glib-networking-common glib-networking-tests libglibmm-2.68-1 libglibmm-2.68-dev libglibmm-2.68-doc libgmime-3.0-dev gir1.2-gmime-3.0 libgmime-3.0-doc libgmime-3.0-0 gmime-bin libgnome-autoar-0-0 libgnome-autoar-gtk-0-0 libgnome-autoar-0-dev libgnome-autoar-gtk-0-dev gir1.2-gnomeautoar-0.1 gir1.2-gnomeautoargtk-0.1 libgnome-autoar-doc gnome-backgrounds libgnome-bluetooth-3.0-13 libgnome-bluetooth-ui-3.0-13 libgnome-bluetooth-3.0-dev libgnome-bluetooth-ui-3.0-dev gir1.2-gnomebluetooth-3.0 libgnome-bluetooth-doc gnome-bluetooth-3-common gnome-bluetooth-sendto gnome-boxes gnome-builder gnome-calculator gnome-calendar gnome-characters gnome-clocks gnome-color-manager gnome-connections gnome-console kgx gnome-contacts gnome-control-center gnome-control-center-faces gnome-control-center-dev gnome-control-center-data gnome-desktop3-data gnome-desktop-3-tests loupe gnome-snapshot libgnome-desktop-3-20 libgnome-desktop-3-dev libgnome-bg-4-2 libgnome-desktop-4-2 libgnome-rr-4-2 libgnome-bg-4-dev libgnome-desktop-4-dev libgnome-rr-4-dev gir1.2-gnomedesktop-3.0 gir1.2-gnomebg-4.0 gir1.2-gnomedesktop-4.0 gir1.2-gnomerr-4.0 libgnome-desktop-doc libgnome-desktop-3-dev-bin gnome-disk-utility gnome-font-viewer gnome-initial-setup gnome-keyring gnome-keyring-pkcs11 libpam-gnome-keyring gnome-logs gnome-maps gnome-menus libgnome-menu-3-0 libgnome-menu-3-dev gir1.2-gmenu-3.0 gnome-music gnome-online-accounts libgoa-1.0-0b libgoa-1.0-de
2024-04-04 15:10:19 +02:00
Pin: release a=experimental
Pin-Priority: 425
2024-01-12 14:39:27 +01:00
Package: *
Pin: release o=Unofficial Multimedia Packages
2024-04-04 15:10:19 +02:00
Pin-Priority: 450
2024-01-12 14:39:27 +01:00
2024-03-24 19:18:37 +01:00
# Neon blacklist
Package: neon-desktop base-files
Pin: origin archive.neon.kde.org
Pin-Priority: -1
2024-01-12 15:13:23 +01:00
# Give pika lowest priority because we don't want it sources overwriting
2024-01-12 14:39:27 +01:00
Package: *
2024-03-30 15:09:23 +01:00
Pin: release a=pikauwu,c=canary
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
2024-01-13 10:31:00 +01:00
Pin-Priority: 400
2024-01-12 14:39:27 +01:00
Package: amdgpu-core amdgpu-pro-core amdgpu-dkms amdgpu-pro-lib32
Pin: release a=*
Pin-Priority: -10
2024-04-04 15:10:19 +02:00
EOF