diff --git a/.acorn/install.sh b/.acorn/install.sh index e6fe4f7..fc29dc2 100644 --- a/.acorn/install.sh +++ b/.acorn/install.sh @@ -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 diff --git a/Makefile b/Makefile index 04b9a7c..717fe12 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file + 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 diff --git a/plugins/zypper/pak.cfg b/plugins/zypper/pak.cfg new file mode 100644 index 0000000..569921c --- /dev/null +++ b/plugins/zypper/pak.cfg @@ -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 +