#Packager: Dimitris Tzemos pkgname=lxdm pkgver=0.5.3 pkgrel=1dj source=("https://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.xz" "Slackel.tar.gz" "xinitrc" "Xsession" "xsessions.tar.gz" "lxdm.conf" "git-fixes.patch" "set-path.patch" "lxdm-set_DESKTOP_SESSION_in_env.diff" "lxdm-0.3.0-without_pam.diff" "lxdm.conf.in.diff") docs=("AUTHORS" "COPYING" "INSTALL" "README" "TODO" "README.SLACKEL") url="https://lxde.org/" options=('noautodotnew') dotnew=("etc/lxdm/lxdm.conf" "etc/lxdm/LoginReady" "etc/lxdm/PostLogin" "etc/lxdm/PostLogout" "etc/lxdm/PreLogin" "etc/lxdm/PreReboot" "etc/lxdm/PreShutdown" "etc/lxdm/xinitrc" "etc/lxdm/Xsession") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "LXDM (GUI login manager for LXDE)" "LXDM is a lightweight drop-in replacement for GDM or KDM." ) build() { cd $startdir/src/$pkgname-$pkgver # Set DESKTOP_SESSION in the environment when starting a session # I'd normally say this is a bad idea, since upstream disagrees with it # (they say that this should not be populated except when PAM is used), # but xfce and consolekit devs give me the impression that it's not always # wrong to start a new ck session even when one is already open (i.e. the # XDG_SESSION_COOKIE variable is already populated), and besides, since # both KDM and GDM set DESKTOP_SESSION regardless of whether PAM is used, # this seems the path of least resistance. This patch *should* be easy # to maintain ; let's hope I don't eat those words. --rworkman patch -p1 < $startdir/src/lxdm-set_DESKTOP_SESSION_in_env.diff || return 1 patch -p1 < $startdir/src/git-fixes.patch || return 1 patch -p0 < $startdir/src/set-path.patch || return 1 ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --without-pam \ --build=$arch-slackware-linux || return 1 make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 cp -r $startdir/src/Slackel $startdir/pkg/usr/share/lxdm/themes || return 1 # Install a to-be-customized-if-needed /etc/lxdm/xinitrc install -m 0755 -D $startdir/src/xinitrc $startdir/pkg/etc/lxdm/xinitrc || return 1 # Ship our own Xsession and lxdm.conf cp -f $startdir/src/{Xsession,lxdm.conf} $startdir/pkg/etc/lxdm/ || return 1 chmod 755 $startdir/pkg/etc/lxdm/Xsession || return 1 chmod 644 $startdir/pkg/etc/lxdm/lxdm.conf || return 1 # Look for language defaults were we usually store 'em cat << "EOF" > $startdir/pkg/usr/sbin/lxdm #!/bin/sh . /etc/profile.d/lang.sh export LANG exec /usr/sbin/lxdm-binary $* EOF # Include .desktop files in /usr/share/xsessions for the WM shipped by # default in Slackel, some adapted to run a wrapper script. mkdir -p $startdir/pkg/usr/share/xsessions || return 1 cp $startdir/src/xsessions/* $startdir/pkg/usr/share/xsessions || return 1 chmod 755 $startdir/pkg/usr/share/xsessions || return 1 chmod 644 $startdir/pkg/usr/share/xsessions/* || return 1 }