From 305e617fd6b93dac6f4f72e01990734e6ab29451 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" Date: Thu, 25 May 2023 01:09:07 +0300 Subject: [PATCH] wtf --- pika-sources/debian/changelog | 4 +-- pika-sources/debian/control | 2 +- pika-sources/debian/pika-sources.install | 1 + .../etc/apt/apt.conf.d/99steam-launcher | 2 ++ .../usr/share/dpkg/scripts/steam-launcher.sh | 25 +++++++++++++++++++ 5 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 pika-sources/etc/apt/apt.conf.d/99steam-launcher create mode 100755 pika-sources/usr/share/dpkg/scripts/steam-launcher.sh diff --git a/pika-sources/debian/changelog b/pika-sources/debian/changelog index 7c8e25c..2089275 100644 --- a/pika-sources/debian/changelog +++ b/pika-sources/debian/changelog @@ -1,6 +1,6 @@ -pika-sources (5.1-99pika7-lunar) lunar; urgency=low +pika-sources (5.1-99pika8-lunar) lunar; urgency=low - * remove pipewire ppa + * add steam hook -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200 diff --git a/pika-sources/debian/control b/pika-sources/debian/control index 3ad3422..5fa0df7 100644 --- a/pika-sources/debian/control +++ b/pika-sources/debian/control @@ -10,7 +10,7 @@ Package: pika-sources Section: misc Architecture: all Pre-Depends: python-apt-common, distro-info-data -Depends: ${misc:Depends} +Depends: ${misc:Depends}, ubuntu-keyring Description: APT Source files and keyrings for the repositories we use/provide. diff --git a/pika-sources/debian/pika-sources.install b/pika-sources/debian/pika-sources.install index ee19d5d..a75e237 100644 --- a/pika-sources/debian/pika-sources.install +++ b/pika-sources/debian/pika-sources.install @@ -1 +1,2 @@ etc +usr diff --git a/pika-sources/etc/apt/apt.conf.d/99steam-launcher b/pika-sources/etc/apt/apt.conf.d/99steam-launcher new file mode 100644 index 0000000..eb0627a --- /dev/null +++ b/pika-sources/etc/apt/apt.conf.d/99steam-launcher @@ -0,0 +1,2 @@ +DPkg::Pre-Install-Pkgs {"/usr/share/dpkg/scripts/steam-launcher.sh pre";}; +DPkg::Post-Invoke {"/usr/share/dpkg/scripts/steam-launcher.sh post";}; diff --git a/pika-sources/usr/share/dpkg/scripts/steam-launcher.sh b/pika-sources/usr/share/dpkg/scripts/steam-launcher.sh new file mode 100755 index 0000000..a223fcf --- /dev/null +++ b/pika-sources/usr/share/dpkg/scripts/steam-launcher.sh @@ -0,0 +1,25 @@ +#! /bin/bash + +if [[ $1 == pre ]] +then + if grep -q steam-launcher + then + mkdir -p /var/lib/apt/hooks + touch /var/lib/apt/hooks/steam-launcher +else + exit 0 + fi +fi + +if [[ $1 == post ]] +then + if [[ -f /var/lib/apt/hooks/steam-launcher ]] + then + rm -rf /etc/apt/sources.list.d/steam-stable.list || echo 'no stable steam repos' + rm -rf /etc/apt/sources.list.d/steam.list || echo 'no steam repos' + rm -rf /var/lib/apt/hooks/steam-launcher + else + exit 0 + fi +fi +