Apply DRY principle to Linux build instructions

Jonathan Martens 2020-06-06 23:52:09 +02:00 committed by GitHub
parent 7b430ee30e
commit c71833b688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 19 deletions

@ -6,43 +6,33 @@
**note**: these aren't the only things build at compile time, but merely what the end-user is expected to use.
## Ubuntu/Debian/Raspbian: Build from source
## Preparing your system
### Ubuntu/Debian/Raspbian
```shell
sudo apt update && sudo apt upgrade
sudo apt install git cmake make xorg-dev g++ libcurl4-openssl-dev \
libavahi-compat-libdnssd-dev libssl-dev libx11-dev \
libqt4-dev qtbase5-dev
git clone https://github.com/debauchee/barrier.git
# this builds from master,
# you can get release tarballs instead
# if you want to build from a specific tag/release
cd barrier
./clean_build.sh
cd build
sudo make install # installs to /usr/local/
```
## Fedora: Build from source:
### Fedora
```shell
sudo dnf install git cmake make gcc-c++ xorg-x11-server-devel \
libcurl-devel avahi-compat-libdns_sd-devel \
libXtst-devel qt5 qt5-devel openssl-devel
git clone https://github.com/debauchee/barrier.git
# this builds from master,
# you can get release tarballs instead
# if you want to build from a specific tag/release
cd barrier
./clean_build.sh
cd build
sudo make install # installs to /usr/local/
```
## openSUSE: Build from source:
### openSUSE
```shell
sudo zypper install libdrm-devel libglvnd-devel libICE-devel libQt5Core-devel libQt5Gui-devel libQt5Network-devel libqt5-qtbase-common-devel libQt5Widgets-devel libSM-devel libXinerama-devel libXrandr-devel libXrender-devel
```
## Building from source
```shell
git clone https://github.com/debauchee/barrier.git
# this builds from master,
# you can get release tarballs instead