Fix formatting and add Alpine Linux
@@ -17,7 +17,9 @@ Before building, make sure that your system has some basic packages installed.
At least the following are required for building and running the regression
tests:
+```sh
sudo apt-get install build-essential autoconf pkg-config libtool mtools unzip zip help2man
+```
## Static build
@@ -25,6 +27,7 @@ A script is included to download and statically build the dependencies. The rest
is a fairly typical build process. Modify the `./configure` line if necessary to
change the installation location.
+```sh
./scripts/download_deps.sh
./scripts/build_deps.sh
./autogen.sh # only necessary if building from a git source tree
@@ -32,6 +35,7 @@ change the installation location.
make
make check
make install
+```
## Shared build
@@ -43,6 +47,7 @@ request on GitHub if you could.)
On Ubuntu:
+```sh
# The version of libconfuse available in apt is too old
curl -L https://github.com/martinh/libconfuse/releases/download/v3.0/confuse-3.0.tar.gz | tar -xz -C /tmp
pushd /tmp/confuse-3.0
@@ -51,9 +56,11 @@ On Ubuntu:
rm -rf /tmp/confuse-3.0
sudo apt-get install libarchive-dev libsodium-dev
+```
On CentOS 6:
+```sh
# The version of libconfuse available in yum is too old
curl -L https://github.com/martinh/libconfuse/releases/download/v3.0/confuse-3.0.tar.gz | tar -xz -C /tmp
pushd /tmp/confuse-3.0
@@ -80,9 +87,11 @@ On CentOS 6:
# Building fwup from source requires autotools
sudo yum install autoconf automake libtool
+```
On CentOS 7:
+```sh
# The version of libconfuse available in yum is too old
curl -L https://github.com/martinh/libconfuse/releases/download/v3.0/confuse-3.0.tar.gz | tar -xz -C /tmp
pushd /tmp/confuse-3.0
@@ -91,13 +100,23 @@ On CentOS 7:
rm -rf /tmp/confuse-3.0
sudo yum install libarchive-devel libsodium-devel
+```
+
+On Alpine:
+
+```sh
+apk add confuse-dev libarchive-dev libsodium-dev
+```
### Building
On Linux:
+```sh
cd fwup
./configure
make
make check
sudo make install
+```
+
