eval "$(
  declare -f package_lightdm | \
    sed '
      /install.*lightdm.service/ a \
        sed -i \"/.*Service.*/ a LimitMEMLOCK=infinity\" "${pkgdir}"/usr/lib/systemd/system/lightdm.service
    '
)"