Update BUILD.md with repository setup instructions [skip ci]

Added instructions for cloning and updating the Shairport Sync repository.
This commit is contained in:
Mike Brady
2026-07-03 21:58:13 +02:00
committed by GitHub
parent 89b78b8927
commit 82f9ea9d7a
+11
View File
@@ -50,6 +50,7 @@ The configuration file is typically at `/etc/shairport-sync.conf` or `/usr/local
You should also remove any of the following service files that may be present:
* `/etc/systemd/system/shairport-sync.service`
* `/etc/systemd/user/shairport-sync.service`
* `/usr/lib/systemd/system/shairport-sync.service`
* `/lib/systemd/system/shairport-sync.service`
* `/lib/systemd/user/shairport-sync.service`
* `/etc/dbus-1/system.d/shairport-sync-dbus.conf`
@@ -180,12 +181,22 @@ Download Shairport Sync and configure, compile and install it. Before executing
* You can actually omit `--with-ffmpeg` when building classic Shairport Sync, but it is not recommended. While you'll save space (you can omit the FFMpeg libraries in the build and run-time environments), transcoding, e.g. from 44,100 to 48,000 frames per second, will not be available and less well-maintained and less secure decoders will be used.
* **Extra Features:** If you wish to add extra features, for example an extra audio backend, take a look at the [configuration flags](CONFIGURATION%20FLAGS.md). For this walkthrough, though, please do not change too much!
If you are building Shairport Sync for the first time, clone its git repository and move into it:
```
$ git clone https://github.com/mikebrady/shairport-sync.git
$ cd shairport-sync
```
Otherwise, if you have previously cloned the Shairport Sync git repository to the local directory `shairport-sync`, move into that directory and pull the updates:
```
$ cd shairport-sync
$ git pull
```
Next, perform the following steps:
```
$ autoreconf -fi # about 1.5 minutes on a Raspberry Pi B
$ ./configure --sysconfdir=/etc --with-alsa \
--with-soxr --with-avahi --with-ssl=openssl --with-systemd-startup --with-airplay-2
$ make clean # only necessary when updating, to remove outdated older object files
$ make # just over 7 minutes on a Raspberry Pi B
# make install
```