From d2e9f7cbaeb26233ec7a6b0654cf0ad1907825f3 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 29 May 2021 16:51:23 +0200 Subject: extra/lightdm: use polkit-duktate on i486 --- extra/lightdm/PKGBUILD | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'extra/lightdm/PKGBUILD') diff --git a/extra/lightdm/PKGBUILD b/extra/lightdm/PKGBUILD index 9288f4d3..93a0e4fa 100644 --- a/extra/lightdm/PKGBUILD +++ b/extra/lightdm/PKGBUILD @@ -2,20 +2,18 @@ if [ "$CARCH" = 'i486' ]; then makedepends=(${makedepends[@]//polkit/}) makedepends+=(polkit-duktape) - if [ "$CARCH" = 'i486' ]; then - eval "$( - declare -f package_lightdm | \ - sed ' - /depends/s/polkit/polkit-duktape/ - ' - )" - fi + eval "$( + declare -f package_lightdm | \ + sed ' + /depends/s/polkit/polkit-duktape/ + ' + )" + eval "$( + declare -f package_lightdm | \ + sed ' + /install.*lightdm.service/ a \ + sed -i \"/.*Service.*/ a LimitMEMLOCK=infinity\" "${pkgdir}"/usr/lib/systemd/system/lightdm.service + ' + )" fi -eval "$( - declare -f package_lightdm | \ - sed ' - /install.*lightdm.service/ a \ - sed -i \"/.*Service.*/ a LimitMEMLOCK=infinity\" "${pkgdir}"/usr/lib/systemd/system/lightdm.service - ' -)" -- cgit v1.2.3-70-g09d2