This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-05-25 01:09:07 +03:00
parent 544a64eaaf
commit 305e617fd6
5 changed files with 31 additions and 3 deletions

View File

@ -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 <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200

View File

@ -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.

View File

@ -1 +1,2 @@
etc
usr

View File

@ -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";};

View File

@ -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