You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. #!/bin/sh
  2. if [ -e /usr/bin/apt-get ]; then
  3. export DEBIAN_FRONTEND=noninteractive
  4. apt-get -qy update
  5. apt-get -qy --no-install-suggests --no-install-recommends \
  6. install \
  7. ca-certificates \
  8. build-essential \
  9. git \
  10. g++ \
  11. debhelper \
  12. automake \
  13. fakeroot \
  14. libtool \
  15. lsb-release
  16. apt-get -qy --no-install-suggests --no-install-recommends install python
  17. apt-get -qy --no-install-suggests --no-install-recommends install python3
  18. elif [ -e /usr/bin/dnf ]; then
  19. dnf -y update
  20. dnf -y install \
  21. git rpm-build gcc-c++ make which python3 automake \
  22. libtool gettext-devel
  23. elif [ -e /usr/bin/yum ]; then
  24. yum -y update
  25. yum -y install \
  26. git rpm-build gcc-c++ make which \
  27. python python-argparse \
  28. automake libtool gettext-devel
  29. elif [ -e /sbin/apk ]; then
  30. apk add \
  31. abuild git gcc g++ make autoconf \
  32. automake libtool gettext-dev linux-headers
  33. elif [ -e /usr/sbin/pkg ]; then
  34. pkg install \
  35. git gmake gcc autoconf automake libtool \
  36. gettext-tools
  37. fi
  38. if [ ! -e /usr/bin/python ]; then
  39. if [ -e /usr/bin/python3 ]; then
  40. ln -s /usr/bin/python3 /usr/bin/python
  41. elif [ -e /usr/bin/python2 ]; then
  42. ln -s /usr/bin/python2 /usr/bin/python
  43. fi
  44. fi