aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vokoscreenNG/vokoscreenNG.SlackBuild
diff options
context:
space:
mode:
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 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}