Add zypper support and fix acorn

This commit is contained in:
Elara 2020-09-27 21:50:25 -07:00
parent 677809a735
commit dc868385e4
3 changed files with 31 additions and 2 deletions

View File

@ -1 +1,13 @@
make install
if command -v apt &> /dev/null; then
make aptinstall
elif command -v aptitude &> /dev/null; then
make aptitude
elif command -v brew &> /dev/null; then
make brewinstall
elif command -v zypper &> /dev/null; then
make zyppinstall
elif command -v yay &> /dev/null; then
make yayinstall
elif command -v pacman &> /dev/null; then
make pacinstall
fi

View File

@ -29,4 +29,8 @@ aptitude: plugins/aptitude/pak.cfg pak
brewinstall: plugins/brew/pak.cfg pak
mount -uw /
install -m644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.cfg
install -m755 pak $(DESTDIR)/usr/bin/pak
install -m755 pak $(DESTDIR)/usr/bin/pak
zyppinstall: plugins/zypper/pak.cfg pak
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.cfg
install -Dm755 pak $(DESTDIR)/usr/bin/pak

13
plugins/zypper/pak.cfg Normal file
View File

@ -0,0 +1,13 @@
# Write the name of the package manager in all lowercase below
zypper
# Write a comma separated list of commands from the manager below
install,remove,refresh,search,update,addrepo
# Write "yes" or "no" depending on whether you want to use sudo
yes
# Write command to use for root
sudo
# Write a comma separated list of shortcuts below
rm,ar,inst
# Write a comma separated list of shortcut mappings from the manager below
remove,addrepo,install