diff options
author | isaackwy <isaacyu@protonmail.com> | 2024-03-16 15:46:07 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-03-19 11:04:46 +0700 |
commit | 7350dd99cc6a07f7f559235203583bdc34b0ee7e (patch) | |
tree | dca15e32200eff5690fc3d38a66d592d77f9411a /desktop/xsecurelock | |
parent | b124109089cd25fd3363f004aeadf7d29b8c75f1 (diff) |
desktop/xsecurelock: Make pandoc-bin an optional dependency
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/xsecurelock')
-rw-r--r-- | desktop/xsecurelock/README | 7 | ||||
-rw-r--r-- | desktop/xsecurelock/xsecurelock.SlackBuild | 10 | ||||
-rw-r--r-- | desktop/xsecurelock/xsecurelock.info | 2 |
3 files changed, 12 insertions, 7 deletions
diff --git a/desktop/xsecurelock/README b/desktop/xsecurelock/README index 280012f5015f7..4ed84ddbfefcb 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 4fd6e058964e3..2eb11a94f2889 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 40cfc1c245ba3..fbe805761ce2f 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" |