1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00
wezterm/get-deps

67 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/bin/bash
# Centos may not have lsb_release installed
if test -e /etc/centos-release || test -e /etc/fedora-release; then
2020-05-04 18:21:30 +03:00
if test -x /bin/dnf ; then
YUM=dnf
else
YUM=yum
fi
$YUM install -y \
2019-11-10 06:46:37 +03:00
make \
2020-02-11 09:16:34 +03:00
gcc \
gcc-c++ \
dbus-devel \
2019-06-17 00:11:15 +03:00
fontconfig-devel \
2019-06-17 00:11:36 +03:00
openssl-devel \
2020-02-11 09:16:34 +03:00
python3 \
libxcb-devel \
2019-02-23 09:11:25 +03:00
libxkbcommon-devel \
libxkbcommon-x11-devel \
wayland-devel \
mesa-libEGL-devel \
2019-06-17 00:11:15 +03:00
xcb-util-keysyms-devel \
xcb-util-wm-devel \
2019-12-30 01:03:09 +03:00
rpm-build \
redhat-lsb-core
exit $?
fi
if test -e /etc/debian_version ; then
apt-get install -y \
bsdutils \
cmake \
fakeroot \
gcc \
g++ \
libdbus-1-dev \
libegl1-mesa-dev \
libssl-dev \
libfontconfig1-dev \
libwayland-dev \
2020-05-04 08:45:10 +03:00
libx11-xcb-dev \
libxcb-ewmh-dev \
libxcb-icccm4-dev \
libxcb-keysyms1-dev \
libxcb-shm0-dev \
libxcb-xkb-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
lsb-release \
python3 \
xdg-utils \
xorg-dev
exit $?
fi
case $OSTYPE in
darwin*|msys)
exit 0
;;
*)
echo "Please contribute the commands to install the deps"
echo "For `lsb_release -ds`"
exit 1
;;
esac