summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
author B. Watson2022-02-23 22:46:14 +0100
committer Willy Sudiarto Raharjo2022-02-25 16:58:03 +0100
commit304ba445d13d2ca1a19651ffe8e16343907ab883 (patch)
treed7576831b701e932b54241518f25080ad33bb64f /audio
parentf84a4648ae0374a36d30fd67856719fe4feb313b (diff)
downloadslackbuilds-304ba445d13d2ca1a19651ffe8e16343907ab883.tar.gz
audio/mpd: Fix build when Sphinx not installed.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/mpd/README1
-rw-r--r--audio/mpd/mpd.SlackBuild2
2 files changed, 2 insertions, 1 deletions
diff --git a/audio/mpd/README b/audio/mpd/README
index 4504f8b21b..4edced9482 100644
--- a/audio/mpd/README
+++ b/audio/mpd/README
@@ -12,6 +12,7 @@ Some optional and important dependencies, detected automatically:
* libmms: used for play mms:// and mmsh:// type network streams
* avahi: add support for discovering services on network
* yajl: add support for open soundcloud.com streams
+* Sphinx: used to generate man pages for mpd(1) and mpd.conf(5)
Other optional dependencies, detected automatically: libmpdclient,
musepack-tools, faad2, libsidplay2, twolame, libnfs, jack, zziplib.
diff --git a/audio/mpd/mpd.SlackBuild b/audio/mpd/mpd.SlackBuild
index f332d1be06..3a85c205a5 100644
--- a/audio/mpd/mpd.SlackBuild
+++ b/audio/mpd/mpd.SlackBuild
@@ -124,7 +124,7 @@ rm -rf $PKG/usr/share/doc
# Use sample config, without overwriting
install -D -m 644 doc/mpdconf.example $PKG/etc/mpd.conf.new
-gzip -9 $PKG/usr/man/man*/*
+[ -d $PKG/usr/man ] && gzip -9 $PKG/usr/man/man*/*
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild