feat: add pacman hooks and install script

This commit is contained in:
Adrian Wannenmacher 2021-02-11 07:56:53 +01:00
parent 16ec7f0955
commit 5885881075
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
4 changed files with 29 additions and 0 deletions

6
install.fish Executable file
View File

@ -0,0 +1,6 @@
#!/bin/fish
cp ./pacman/snap-pac-uki-create.fish /usr/local/bin
echo "installed creation script."
cp ./pacman/hooks/* /usr/share/libalpm/hooks/
echo "installed pacman hooks."

View File

@ -0,0 +1,12 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Performing pre UKI creation...
When = PreTransaction
Exec = /usr/local/bin/snap-pac-uki-create.fish
AbortOnFail

View File

@ -0,0 +1,11 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Performing post UKI creation...
When = PostTransaction
Exec = /usr/local/bin/snap-pac-uki-create.fish