summaryrefslogtreecommitdiffstats
path: root/libraries/libopenshot-audio
diff options
context:
space:
mode:
author B. Watson2022-04-18 16:18:13 +0200
committer B. Watson2022-04-18 16:18:13 +0200
commitec75666b0cca84f1a84be527fe62f8d76c463180 (patch)
treed2e18df429af1bb14e828e39062a09d4479cb9df /libraries/libopenshot-audio
parent07da2a35708ff45bd8b39bb272895c063b70c003 (diff)
downloadslackbuilds-ec75666b0cca84f1a84be527fe62f8d76c463180.tar.gz
libraries/libopenshot-audio: Make API doc optional.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libopenshot-audio')
-rw-r--r--libraries/libopenshot-audio/README7
-rw-r--r--libraries/libopenshot-audio/libopenshot-audio.SlackBuild29
2 files changed, 21 insertions, 15 deletions
diff --git a/libraries/libopenshot-audio/README b/libraries/libopenshot-audio/README
index 243c48e8c2..166f83ca4d 100644
--- a/libraries/libopenshot-audio/README
+++ b/libraries/libopenshot-audio/README
@@ -1,3 +1,8 @@
-OpenShot Audio Library (libopenshot-audio) is a program that allows the
+OpenShot Audio Library (libopenshot-audio) is a library that allows the
high-quality editing and playback of audio, and is based on the amazing
JUCE library.
+
+By default, the API documentation is not built, as it's rather
+resource-intensive, and not required unless you're a developer. If
+you need the API docs, install graphviz, then run this build with
+APIDOC=yes in the environment.
diff --git a/libraries/libopenshot-audio/libopenshot-audio.SlackBuild b/libraries/libopenshot-audio/libopenshot-audio.SlackBuild
index 58d0c65ada..65270fb2d0 100644
--- a/libraries/libopenshot-audio/libopenshot-audio.SlackBuild
+++ b/libraries/libopenshot-audio/libopenshot-audio.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libopenshot-audio
VERSION=${VERSION:-0.2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -72,9 +72,12 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
mkdir -p build
cd build
@@ -84,21 +87,19 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
- make doc
- make install DESTDIR=$PKG
+ make install/strip DESTDIR=$PKG
+ if [ "${APIDOC:-no}" = "yes" ]; then
+ make doc
+ cp -a doc/html $PKGDOC/API
+ fi
cd ..
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mv $PKG/usr/share/man $PKG/usr
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+gzip -9 $PKG/usr/man/man*/*
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/share/doc/$PRGNAM/API $PKG/usr/doc/$PRGNAM-$VERSION/ && rm -rf $PKG/usr/share
-cp -a AUTHORS COPYING INSTALL.md README.md $PKG/usr/doc/$PRGNAM-$VERSION/
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -rf $PKG/usr/share # 20220417 bkw: nothing left here but doc/
+cp -a AUTHORS COPYING README.md $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc