summaryrefslogtreecommitdiff
path: root/system/sddm/sddm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/sddm/sddm.SlackBuild')
-rw-r--r--system/sddm/sddm.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/system/sddm/sddm.SlackBuild b/system/sddm/sddm.SlackBuild
index 9507440021..1f1e73f547 100644
--- a/system/sddm/sddm.SlackBuild
+++ b/system/sddm/sddm.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sddm
-VERSION=${VERSION:-0.17.0}
+VERSION=${VERSION:-0.18.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,6 +53,15 @@ else
LIBDIRSUFFIX=""
fi
+if grep sddm /etc/passwd | grep "/var/empty"; then
+ printf "%s\n%s\n%s\n%s\n" \
+ "It appears that SDDM's home is set to /var/empty in /etc/passwd." \
+ "This needs to be changed to /var/lib/sddm." \
+ "To do this, run: usermod -d /var/lib/sddm sddm" \
+ "This installation will now terminate."
+ exit 1
+fi
+
set -e
rm -rf $PKG
@@ -70,7 +79,7 @@ find -L . \
patch -p1 --verbose < $CWD/consolekit.patch
-# Fix so that SDDM doesn't run ~/.xsession
+# Fix so that SDDM doesn't source ~/.xsession which breaks on some WMs
patch -p1 --verbose < $CWD/xsession.patch
mkdir -p build
@@ -87,6 +96,9 @@ cd build
make install DESTDIR=$PKG
cd ..
+mkdir -p $PKG/etc
+cp $CWD/sddm.conf.new $PKG/etc
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -96,10 +108,8 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mv $PKG/etc/sddm.conf $PKG/etc/sddm.conf.new
-
mkdir -p $PKG/var/lib/sddm
-chown sddm:users $PKG/var/lib/sddm
+chown sddm:sddm $PKG/var/lib/sddm
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc