diff options
author | Benjamin Trigona-Harany <slackbuilds@jaxartes.net> | 2020-01-26 20:56:32 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-02-01 09:00:33 +0700 |
commit | dd74350bb454b37a6f3db7c2b0dff5a53bcb4a66 (patch) | |
tree | 0579fa8146c890c6c7dc2e7d09a38d3f91120a0c /network/weechat/weechat.SlackBuild | |
parent | c64ad52dd6daa73722d522fa083008aca9c21bfa (diff) |
network/weechat: Allow optional build of docs/man.
Signed-off-by: Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
Diffstat (limited to 'network/weechat/weechat.SlackBuild')
-rw-r--r-- | network/weechat/weechat.SlackBuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/network/weechat/weechat.SlackBuild b/network/weechat/weechat.SlackBuild index 1098af890a762..e9f93f32899fd 100644 --- a/network/weechat/weechat.SlackBuild +++ b/network/weechat/weechat.SlackBuild @@ -80,7 +80,8 @@ cd build -DENABLE_JAVASCRIPT=OFF \ -DENABLE_PHP=OFF \ -DENABLE_PYTHON=ON \ - -DENABLE_DOC=OFF \ + -DENABLE_DOC=${DOC:-OFF} \ + -DENABLE_MAN=${DOC:-OFF} \ -DLIBDIR=/usr/lib${LIBDIRSUFFIX} \ -DCMAKE_BUILD_TYPE=Release \ .. @@ -96,6 +97,9 @@ if [ -e $PKG/usr/share/man ]; then fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +if [ -e $PKG/usr/share/doc/$PRGNAM ]; then + mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION/html +fi cp -a \ AUTHORS.adoc COPYING ChangeLog.adoc README.adoc ReleaseNotes.adoc \ $PKG/usr/doc/$PRGNAM-$VERSION |