diff options
author | Erik Falor <ewfalor@gmail.com> | 2021-02-19 19:35:53 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-02-21 00:05:00 +0700 |
commit | 13be9b7a7f82a6551027032d70d52493c933422e (patch) | |
tree | b40fb3f870e8902882939c75536205c4888b7a03 /multimedia | |
parent | 92a87c95fb3338d9f2487430492dc846d11290d6 (diff) |
multimedia/vokoscreenNG: Add profile script for XDG_SESSION_TYPE.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/vokoscreenNG/README | 11 | ||||
-rw-r--r-- | multimedia/vokoscreenNG/vokoscreenNG.SlackBuild | 18 | ||||
-rw-r--r-- | multimedia/vokoscreenNG/vokoscreenNG.info | 2 |
3 files changed, 28 insertions, 3 deletions
diff --git a/multimedia/vokoscreenNG/README b/multimedia/vokoscreenNG/README index dab01760cd0f..ed98b62da47a 100644 --- a/multimedia/vokoscreenNG/README +++ b/multimedia/vokoscreenNG/README @@ -1,2 +1,13 @@ vokoscreenNG is an easy to use screencast creator to record educational videos, live recordings of browser, installation, videoconferences, etc. + +This application requires that $XDG_SESSION_TYPE be exported with either +"X11" or "Wayland". This SlackBuild installs profile scripts under +/etc/profile.d to set this variable. These scripts use the value of +XDG_SESSION_TYPE from the environment in which this SlackBuild is run, +defaulting to XDG_SESSION_TYPE=X11. + +To control the session type, run this script with your preferred +definition of XDG_SESSION_TYPE: + + XDG_SESSION_TYPE=Wayland ./vokoscreenNG.SlackBuild diff --git a/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild b/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild index e2659738bc9d..4b4eadadc524 100644 --- a/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild +++ b/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=vokoscreenNG VERSION=${VERSION:-3.0.8} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,7 +73,7 @@ find -L . \ patch -Np1 -i $CWD/0001-Add-better-integration-for-Linux.patch qmake-qt5 PREFIX=/usr QMAKE_CXXFLAGS="$SLKCFLAGS" src/vokoscreenNG.pro -make +make -j $(nproc) make INSTALL_ROOT=$PKG install find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -85,9 +85,23 @@ cp -a \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG +mkdir -p etc/profile.d +cat > etc/profile.d/$PRGNAM.sh << EOF +#!/bin/sh +export XDG_SESSION_TYPE=${XDG_SESSION_TYPE:-X11} +EOF + +cat > etc/profile.d/$PRGNAM.csh << EOF +#!/bin/csh +setenv XDG_SESSION_TYPE ${XDG_SESSION_TYPE:-X11} +EOF + +chmod 755 etc/profile.d/* + /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/multimedia/vokoscreenNG/vokoscreenNG.info b/multimedia/vokoscreenNG/vokoscreenNG.info index b797104b1566..f9bbbb5aad4a 100644 --- a/multimedia/vokoscreenNG/vokoscreenNG.info +++ b/multimedia/vokoscreenNG/vokoscreenNG.info @@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/vkohaupt/vokoscreenNG/archive/3.0.8/vokoscreenNG-3. MD5SUM="88aacbf74cb543ed0db2397abe3ac74a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="qt5 ffmpeg lame" +REQUIRES="qt5 ffmpeg lame %README%" MAINTAINER="Erik Falor" EMAIL="ewfalor@gmail.com" |