mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
0af05b343a
renamed checksums to kdeapps.sums added for all packages the pgp signature for new/removed packages check: https://community.kde.org/Applications/16.12_Release_Notes#Tarballs_that_we_have_split
84 lines
3.1 KiB
Bash
84 lines
3.1 KiB
Bash
# Maintainer: abveritas@chakra-project.org
|
|
|
|
pkgname=lightdm
|
|
pkgver=1.5.1
|
|
pkgrel=1
|
|
pkgdesc="A lightweight display manager"
|
|
arch=('x86_64')
|
|
url="https://launchpad.net/lightdm"
|
|
depends=('dbus-glib' 'libxklavier' 'qt')
|
|
makedepends=('gobject-introspection' 'pkg-config' 'intltool' 'patch' 'itstool')
|
|
opdepends=('lightdm-kde: Qt lightdm greeter')
|
|
options=(!libtool)
|
|
install=lightdm.install
|
|
license=('GPL3' 'LGPL3')
|
|
source=("https://launchpad.net/lightdm/1.6/$pkgver/+download/$pkgname-$pkgver.tar.xz"
|
|
'lightdm.service'
|
|
'lightdm.tmpfiles'
|
|
'xsession'
|
|
'lightdm-autologin.pam'
|
|
'lightdm.pam'
|
|
'lightdm.rules'
|
|
'lightdm-1.5.0-systemd_login1_power.patch'
|
|
'lightdm-lock-screen-before-switch.patch')
|
|
backup=('etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf'
|
|
'etc/lightdm/keys.conf'
|
|
'etc/lightdm/lightdm.conf'
|
|
'etc/lightdm/users.conf'
|
|
'etc/pam.d/lightdm')
|
|
md5sums=('e1b24757fdbd498af9e4af253f112754'
|
|
'737c6f27488517c6320bfc797954b400'
|
|
'b1e1baf7351ff58c7b3b9b204472f6bb'
|
|
'683bc8bc3f423157065dc6295f9fecef'
|
|
'9e39da461e36f9d3fdd4447a80ebd878'
|
|
'a5c60ec8739a698e4127b47ef417e517'
|
|
'2a7326f4de1d949b8c96749b62cc5021'
|
|
'da9ce685cd38df6b5891574aa3ecbb13'
|
|
'43314fcf13397aaf2321a86d7ed9452c')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
patch -p1 -i "$srcdir/lightdm-1.5.0-systemd_login1_power.patch"
|
|
patch -p1 -i "$srcdir/lightdm-lock-screen-before-switch.patch"
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--disable-static \
|
|
--libexecdir=/usr/lib/lightdm \
|
|
--localstatedir=/var \
|
|
--with-greeter-user=lightdm \
|
|
--with-greeter-session=lightdm-kde-greeter \
|
|
--disable-tests
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make DESTDIR=$pkgdir install
|
|
|
|
# init services file
|
|
install -D -m644 ../lightdm.service $pkgdir/usr/lib/systemd/system/lightdm.service
|
|
install -D -m644 ../lightdm.tmpfiles $pkgdir/usr/lib/tmpfiles.d/lightdm.conf
|
|
|
|
# some tweaks
|
|
rm -rf $pkgdir/etc/init
|
|
chmod +x ../xsession
|
|
install -D -m755 ../xsession $pkgdir/etc/lightdm
|
|
sed -i -e "s|#run-directory=/var/run/lightdm|run-directory=/run/lightdm|g" $pkgdir/etc/lightdm/lightdm.conf
|
|
sed -i -e "s|minimum-uid=500|minimum-uid=1000|g" $pkgdir/etc/lightdm/users.conf
|
|
sed -i -e "s|/usr/sbin/nologin|/sbin/nologin|g" $pkgdir/etc/lightdm/users.conf
|
|
sed -i -e "s|#session-wrapper=lightdm-session|session-wrapper=/etc/lightdm/xsession|g" $pkgdir/etc/lightdm/lightdm.conf
|
|
sed -i -e "s|#autologin-session=UNIMPLEMENTED|#autologin-session=UNIMPLEMENTED\n#pam-service=lightdm-autologin|g" $pkgdir/etc/lightdm/lightdm.conf
|
|
sed -i -e "s|#xsessions-directory=/usr/share/xsessions|xsessions-directory=/etc/X11/sessions|g" $pkgdir/etc/lightdm/lightdm.conf
|
|
install -d -m770 $pkgdir/run/lightdm
|
|
|
|
# Doing Autologin and security fixes
|
|
cp ../lightdm-autologin.pam $pkgdir/etc/pam.d/lightdm-autologin
|
|
cp ../lightdm.pam $pkgdir/etc/pam.d/lightdm
|
|
sed 's#\[UserAccounts\]#\[UserList\]#g' -i $pkgdir/etc/lightdm/users.conf
|
|
|
|
install -d -m700 $pkgdir/usr/share/polkit-1/rules.d/
|
|
install -m644 ../lightdm.rules $pkgdir/usr/share/polkit-1/rules.d/lightdm.rules
|
|
}
|
|
|