From c71833b688187fd2e0ebe08e8fca968f7ad688a1 Mon Sep 17 00:00:00 2001 From: Jonathan Martens Date: Sat, 6 Jun 2020 23:52:09 +0200 Subject: [PATCH] Apply DRY principle to Linux build instructions --- Building-on-Linux.md | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/Building-on-Linux.md b/Building-on-Linux.md index 8c98d7f..2bd0151 100644 --- a/Building-on-Linux.md +++ b/Building-on-Linux.md @@ -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