wtf
This commit is contained in:
parent
544a64eaaf
commit
305e617fd6
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
etc
|
||||
usr
|
||||
|
2
pika-sources/etc/apt/apt.conf.d/99steam-launcher
Normal file
2
pika-sources/etc/apt/apt.conf.d/99steam-launcher
Normal 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";};
|
25
pika-sources/usr/share/dpkg/scripts/steam-launcher.sh
Executable file
25
pika-sources/usr/share/dpkg/scripts/steam-launcher.sh
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user