Add zypper support and fix acorn
This commit is contained in:
parent
677809a735
commit
dc868385e4
@ -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
|
||||||
|
4
Makefile
4
Makefile
@ -30,3 +30,7 @@ brewinstall: plugins/brew/pak.cfg pak
|
|||||||
mount -uw /
|
mount -uw /
|
||||||
install -m644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.cfg
|
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
13
plugins/zypper/pak.cfg
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user