aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild
diff options
context:
space:
mode:
authorErik Falor <ewfalor@gmail.com>2021-02-19 19:35:53 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-02-21 00:05:00 +0700
commit13be9b7a7f82a6551027032d70d52493c933422e (patch)
treeb40fb3f870e8902882939c75536205c4888b7a03 /multimedia/vokoscreenNG/vokoscreenNG.SlackBuild
parent92a87c95fb3338d9f2487430492dc846d11290d6 (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/vokoscreenNG/vokoscreenNG.SlackBuild')
-rw-r--r--multimedia/vokoscreenNG/vokoscreenNG.SlackBuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild b/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild
index e2659738bc9d9..4b4eadadc5247 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}