From 13be9b7a7f82a6551027032d70d52493c933422e Mon Sep 17 00:00:00 2001 From: Erik Falor Date: Fri, 19 Feb 2021 19:35:53 +0000 Subject: multimedia/vokoscreenNG: Add profile script for XDG_SESSION_TYPE. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- multimedia/vokoscreenNG/README | 11 +++++++++++ multimedia/vokoscreenNG/vokoscreenNG.SlackBuild | 18 ++++++++++++++++-- multimedia/vokoscreenNG/vokoscreenNG.info | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) (limited to 'multimedia') diff --git a/multimedia/vokoscreenNG/README b/multimedia/vokoscreenNG/README index dab01760cd..ed98b62da4 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 e2659738bc..4b4eadadc5 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 b797104b15..f9bbbb5aad 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" -- cgit v1.2.3