[eos-lxdm-gtk3] Fix PKGBUILD issues and cleanup

This commit is contained in:
dalto
2022-09-28 17:42:46 -05:00
parent 58853e7af4
commit fdaa3f0361
+10 -13
View File
@@ -8,7 +8,8 @@ pkgbase=lxdm
pkgname=eos-lxdm-gtk3
pkgver=0.5.3
pkgrel=5
_srcver=1.5
themebase=endeavouros-lxdm-theme
themever=1.5
pkgdesc='Lightweight X11 Display Manager for EndeavourOS'
arch=('x86_64' 'aarch64' 'armv7h')
url="https://lxde.org/"
@@ -21,7 +22,7 @@ backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession'
'etc/lxdm/PreLogin' 'etc/lxdm/LoginReady' 'etc/lxdm/PostLogin'
'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown')
source=("https://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz"
"https://github.com/endeavouros-team/endeavouros-lxdm-theme/archive/refs/tags/${_srcver}.tar.gz"
"https://github.com/endeavouros-team/${themebase}/archive/refs/tags/${themever}.tar.gz"
"set-path.patch"
"lxdm.pam"
"Xsession")
@@ -32,7 +33,7 @@ sha256sums=('4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f'
'a02f547e1c36f1c7dd2a1f942b620fe76445d561f7835e7fef434aa4c12c6967')
prepare(){
cd $pkgbase-$pkgver
cd "$srcdir/$pkgbase-$pkgver"
# Don't overwrite PATH if already defined
# https://sourceforge.net/p/lxde/bugs/907/
@@ -42,28 +43,24 @@ prepare(){
cp ../lxdm.pam pam/lxdm
cp ../Xsession data/Xsession
autoupdate
autoreconf -fi
}
build() {
cd "$srcdir"
# GTK+ 3 version
[ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3
cd gtk3
cd "$srcdir/$pkgbase-$pkgver"
./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \
--sysconfdir=/etc --localstatedir=/var --enable-gtk3
make
}
package() {
cd gtk3
cd "$srcdir/$pkgbase-$pkgver"
make DESTDIR="$pkgdir" install
# replace lxdm.conf and theme
rm $pkgdir/etc/lxdm/lxdm.conf
cp $srcdir/$_eos_theming/lxdm.conf $pkgdir/etc/lxdm/lxdm.conf
rm -R $pkgdir/usr/share/lxdm/themes/Industrial
rsync -va $srcdir/$_eos_theming/endeavouros $pkgdir/usr/share/lxdm/themes/
chmod 644 "$pkgdir/etc/lxdm/lxdm.conf"
install -Dm644 "$srcdir/$themebase-$themever/lxdm.conf" "$pkgdir/etc/lxdm/lxdm.conf"
rm -R "$pkgdir/usr/share/lxdm/themes/Industrial"
cp -rp "$srcdir/$themebase-$themever/endeavouros" "$pkgdir/usr/share/lxdm/themes/."
# Setup system user and group
install -dm755 "$pkgdir"/usr/lib/{sysusers,tmpfiles}.d