pika-debian-bleedingedge/setup.sh

84 lines
2.5 KiB
Bash
Raw Permalink 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
2024-07-21 14:49:48 +02:00
rm -rf /etc/apt/sources.list.d/*
2024-01-12 14:29:46 +01:00
# 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
2024-09-08 17:42:12 +02:00
Architecture: amd64 i386 all
2024-01-12 14:29:46 +01:00
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/
2024-09-08 17:42:12 +02:00
Architecture: amd64 i386 all
2024-07-21 13:45:31 +02:00
Suites: pika
2024-03-30 15:09:23 +01:00
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-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-01-12 14:39:27 +01:00
# Setup apt configration
2024-07-15 13:55:56 +02:00
mkdir -p /etc/apt/preferences.d/
2024-01-12 14:39:27 +01:00
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
2024-07-15 14:41:11 +02:00
Package: *libwebrtc-audio-processing* *selinux*
Pin: release a=experimental
Pin-Priority: -1
2024-03-29 13:17:43 +01:00
2024-01-12 14:39:27 +01:00
Package: *
Pin: release o=Unofficial Multimedia Packages
2024-07-15 13:55:56 +02:00
Pin-Priority: 550
2024-03-24 19:18:37 +01:00
2024-08-04 22:44:18 +02:00
Package: pika-abi-bridge* *exiv2* akonadi-mime-data libkf5akonadimime-dev libkf5akonadimime5
2024-07-21 13:45:31 +02:00
Pin: release a=pika,c=canary
2024-07-16 00:28:44 +02:00
Pin-Priority: 600
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-07-21 13:45:31 +02:00
Pin: release a=pika,c=canary
2024-07-31 13:54:25 +02:00
Pin-Priority: 380
2024-01-12 14:39:27 +01:00
2024-07-21 13:45:31 +02:00
Package: pika-abi-bridge*
Pin: release a=pika,c=canary
Pin-Priority: 600
2024-04-04 15:10:19 +02:00
EOF
2024-07-15 13:55:56 +02:00
wget https://github.com/PikaOS-Linux/pika-base-debian-container/raw/main/0-debian-exp-overrides -O /etc/apt/preferences.d/0-debian-exp-overrides