Make script distribution independant
Hi,
I would like to use the update script on Parabola GNU/Linux-libre. The dependency checks fail, as the needed programs are distributed with different names:
- build-essential I think this should be covered by base.
- libpci-dev Probably covered by libpciaccess
pacman -Ss libpci
extra/libpciaccess 0.16-2
X11 PCI access library
- libudev-dev Probably covered by systemd-libudev
- zlib1g-dev Possibly covered by zlib
I see two ways:
- Check if the packagemanager
pacman
is available & use different names for searching. - Check dependencies in a distribution independent way, e.g. over names of binaries. They should be the same, right?
If you need more information or see a way to let me help, please tell me.