From 82f9ea9d7abc0ae1d1b7c8e364055a7f7dcc43b0 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 3 Jul 2026 21:58:13 +0200 Subject: [PATCH] Update BUILD.md with repository setup instructions [skip ci] Added instructions for cloning and updating the Shairport Sync repository. --- BUILD.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BUILD.md b/BUILD.md index 4f52a56b..54573ed4 100644 --- a/BUILD.md +++ b/BUILD.md @@ -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 ```