mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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>
This commit is contained in:
parent
92a87c95fb
commit
13be9b7a7f
3 changed files with 28 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue