mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
update description for sway 1.4 and wlroots 0.10.0
parent
f31ccc362f
commit
4399f3ff92
|
@ -4,11 +4,14 @@
|
|||
|
||||
This document will guide you through installing Sway on Debian 10 (Buster).
|
||||
|
||||
If you prefer to just run a script, you can use this gist: <https://gist.github.com/davidrios/535c43cbaafe6be665b7c6bd345ea6f4>.
|
||||
If you prefer to just run a script, you can use this gist (which will install Sway 1.2 + additional goodies): <https://gist.github.com/davidrios/535c43cbaafe6be665b7c6bd345ea6f4>.
|
||||
|
||||
Else, proceed with the manual steps below.
|
||||
Else, proceed with the manual steps below for installing sway 1.4.
|
||||
|
||||
Make sure you have activated the `contrib` and `non-free` apt repositories.
|
||||
```
|
||||
sudo sed -i -e 's/main$/main contrib non-free/g' /etc/apt/sources.list
|
||||
```
|
||||
|
||||
Update apt cache:
|
||||
|
||||
|
@ -16,6 +19,14 @@ Update apt cache:
|
|||
sudo apt update
|
||||
```
|
||||
|
||||
Make sure you have the meson (>= 0.53.1)
|
||||
Depends ninja-build (>= 1.6) and python3
|
||||
The stable debian apt source list uses an 0.49 version of meson.
|
||||
So you do need to add the debian sid mirror to your apt/sources.list
|
||||
example: `deb http://ftp.de.debian.org/debian sid main`
|
||||
Then again update the apt cache: `sudo apt update` and install newest meson `sudo apt install meson`
|
||||
then you can go and remove the sid mirror from your apt/sources.list and avoid 1000+ upgradable apt packages in sid compared to buster (if you do not remove the sid mirror after installing meson and you run a `sudo apt update && sudo apt upgrade` you may render your system unstable)
|
||||
|
||||
Create a directory to organize sources:
|
||||
|
||||
```
|
||||
|
@ -24,9 +35,9 @@ mkdir ~/sway-src
|
|||
|
||||
## Install wlroots
|
||||
|
||||
First we'll install [wlroots](https://github.com/swaywm/wlroots) 0.7 with almost all extra dependencies:
|
||||
First we'll install [wlroots](https://github.com/swaywm/wlroots) 0.10 with almost all extra dependencies (for now meson have been removed from this install line, it will return as soon as the buster apt meson package have been updated to 0.53.1):
|
||||
````
|
||||
sudo apt install build-essential cmake meson libwayland-dev wayland-protocols \
|
||||
sudo apt install build-essential cmake libwayland-dev wayland-protocols \
|
||||
libegl1-mesa-dev libgles2-mesa-dev libdrm-dev libgbm-dev libinput-dev \
|
||||
libxkbcommon-dev libudev-dev libpixman-1-dev libsystemd-dev libcap-dev \
|
||||
libxcb1-dev libxcb-composite0-dev libxcb-xfixes0-dev libxcb-xinput-dev \
|
||||
|
@ -34,10 +45,12 @@ sudo apt install build-essential cmake meson libwayland-dev wayland-protocols \
|
|||
freerdp2-dev libwinpr2-dev libpng-dev libavutil-dev libavcodec-dev \
|
||||
libavformat-dev universal-ctags
|
||||
|
||||
sudo apt install libelogind-dev libxcb-util0-dev
|
||||
|
||||
cd ~/sway-src
|
||||
git clone https://github.com/swaywm/wlroots.git
|
||||
cd wlroots
|
||||
git checkout 0.8.1
|
||||
git checkout 0.10.0
|
||||
meson build
|
||||
sudo ninja -C build install
|
||||
````
|
||||
|
@ -76,14 +89,14 @@ sudo make PREFIX=/usr/local install
|
|||
|
||||
## Install sway
|
||||
|
||||
Next we'll install sway 1.2:
|
||||
Next we'll install sway 1.4:
|
||||
````
|
||||
sudo apt install libpcre3-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev xwayland
|
||||
|
||||
cd ~/sway-src
|
||||
git clone https://github.com/swaywm/sway.git
|
||||
cd sway
|
||||
git checkout 1.2
|
||||
git checkout 1.4
|
||||
meson build
|
||||
sudo ninja -C build install
|
||||
````
|
||||
|
|
Loading…
Reference in a new issue