summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author isaackwy2024-03-16 23:46:07 +0100
committer Willy Sudiarto Raharjo2024-03-19 05:04:46 +0100
commit7350dd99cc6a07f7f559235203583bdc34b0ee7e (patch)
treedca15e32200eff5690fc3d38a66d592d77f9411a
parentb124109089cd25fd3363f004aeadf7d29b8c75f1 (diff)
downloadslackbuilds-7350dd99cc6a07f7f559235203583bdc34b0ee7e.tar.gz
desktop/xsecurelock: Make pandoc-bin an optional dependency
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--desktop/xsecurelock/README7
-rw-r--r--desktop/xsecurelock/xsecurelock.SlackBuild10
-rw-r--r--desktop/xsecurelock/xsecurelock.info2
3 files changed, 12 insertions, 7 deletions
diff --git a/desktop/xsecurelock/README b/desktop/xsecurelock/README
index 280012f501..4ed84ddbfe 100644
--- a/desktop/xsecurelock/README
+++ b/desktop/xsecurelock/README
@@ -9,7 +9,8 @@ may appear on top of the screen saver), or sometimes even worse.
In XSecureLock, security is achieved using a modular design to avoid the
usual pitfalls of screen locking utility design on X11.
-pandoc-bin (listed in REQUIRES) is required for generating man pages.
+If pandoc (or pandoc-bin) is installed, then the SlackBuild will build
+man pages as well.
-mpv is additionally required for building (and running) the saver_mpv
-module (which plays video clips in $HOME/Videos).
+In addition, mpv provides support for the saver_mpv module (which plays
+video clips in $HOME/Videos).
diff --git a/desktop/xsecurelock/xsecurelock.SlackBuild b/desktop/xsecurelock/xsecurelock.SlackBuild
index 4fd6e05896..2eb11a94f2 100644
--- a/desktop/xsecurelock/xsecurelock.SlackBuild
+++ b/desktop/xsecurelock/xsecurelock.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xsecurelock
VERSION=${VERSION:-1.9.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,6 +76,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# If pandoc is installed, build the manpage
+pandoc --version >/dev/null 2&>1 && PANDOC=yes || PANDOC=no
+
sh autogen.sh
CFLAGS="$SLKCFLAGS" \
@@ -89,7 +92,8 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--build=$ARCH-slackware-linux \
- --with-pam-service-name=system-auth
+ --with-pam-service-name=system-auth \
+ --with-pandoc=$PANDOC
make GIT_VERSION=$VERSION
make install DESTDIR=$PKG
@@ -98,7 +102,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# compress man page
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+[ ${PANDOC:-no} = yes ] && gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CONTRIBUTING LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/desktop/xsecurelock/xsecurelock.info b/desktop/xsecurelock/xsecurelock.info
index 40cfc1c245..fbe805761c 100644
--- a/desktop/xsecurelock/xsecurelock.info
+++ b/desktop/xsecurelock/xsecurelock.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/google/xsecurelock/releases/download/v1.9.0/xsecure
MD5SUM="ccd6ec5ad9ee89a96020f1f9f5d642ea"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="pandoc-bin"
+REQUIRES=""
MAINTAINER="Isaac Yu"
EMAIL="isaacyu@protonmail.com"