Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: lightdm-kde-greeter #2734

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/desktops/kde/lightdm-kde-greeter/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "lightdm-kde-greeter.spec"
}
}
92 changes: 92 additions & 0 deletions anda/desktops/kde/lightdm-kde-greeter/lightdm-kde-greeter.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
%global commit 631b6da2bf2482aa2dc7ceaddbfbb9c566bcf2b4

Name: lightdm-kde-greeter
Version: 6.0.1
Release: 1%?dist
Summary: Login screen using the LightDM framework
License: GPL-3.0-or-later
URL: https://invent.kde.org/plasma/%name
Source0: %url/-/archive/v%version.tar.gz
Packager: madonuko <mado@fyralabs.com>
BuildRequires: gcc gcc-c++ mold
BuildRequires: cmake extra-cmake-modules
BuildRequires: cmake(Qt6Core5Compat)
BuildRequires: cmake(Qt6ShaderTools)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(KF6IconThemes)
BuildRequires: cmake(KF6KCMUtils)
BuildRequires: cmake(KF6Package)
BuildRequires: cmake(KF6ConfigWidgets)
BuildRequires: cmake(KF6I18n)
BuildRequires: cmake(KF6Auth)
BuildRequires: cmake(KF6NetworkManagerQt)
BuildRequires: cmake(Plasma)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(liblightdm-gobject-1)
BuildRequires: systemd-rpm-macros
Requires: lightdm
Requires: plasma-workspace-qml
Requires: polkit
Provides: lightdm-greeter

%description
%summary.


%prep
# why the heck do you torture me for godsake.
%autosetup -n %name-v%version-%commit
sed 's/sbin/bin/' -i greeter/CMakeLists.txt


%build
export LDFLAGS="$LDFLAGS -fuse-ld=mold"
%cmake_kf6 \
-DGREETER_WAYLAND_SESSIONS_FIRST=ON \
-DGREETER_IMAGES_DIR=%_sharedstatedir/%name/images \
-DBUILD_TESTING=OFF
%cmake_build


%install
%cmake_install

%find_lang kcm_lightdm --with-kde
%find_lang lightdm_kde_greeter --with-kde
%find_lang lightdm_theme_userbar --with-kde

# FIXME: why does it installs to the wrong dir
mv %buildroot/%name %buildroot%_datadir/
mkdir -p %buildroot%_sharedstatedir/%name

%post
%systemd_user_post %name-wifikeeper.service

%preun
%systemd_user_preun %name-wifikeeper.service

%postun
%systemd_user_postun_with_restart %name-wifikeeper.service


%files -f kcm_lightdm.lang -f lightdm_kde_greeter.lang -f lightdm_theme_userbar.lang
%doc README.md
%license COPYING.GPL3
%config(noreplace) %_sysconfdir/lightdm/%name.conf
%dir %_sharedstatedir/%name
%_bindir/%name
%_bindir/lightdm-kde-greeter-rootimage
%_bindir/lightdm-kde-greeter-wifikeeper
%_datadir/applications/kcm_lightdm.desktop
%_datadir/dbus-1/system-services/org.kde.kcontrol.kcmlightdm.service
%_datadir/dbus-1/system.d/org.kde.kcontrol.kcmlightdm.conf
%_datadir/polkit-1/actions/org.kde.kcontrol.kcmlightdm.policy
%_datadir/xgreeters/lightdm-kde-greeter.desktop
%_datadir/%name/
%_kf6_libexecdir/kauth/kcmlightdmhelper
%_qt6_plugindir/plasma/kcms/systemsettings/kcm_lightdm.so
%_userunitdir/lightdm-kde-greeter-wifikeeper.service

%changelog
* Tue Dec 24 2024 madonuko <mado@fyralabs.com> - 6.0.1-1
- Initial package
5 changes: 5 additions & 0 deletions anda/desktops/kde/lightdm-kde-greeter/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let v = gitlab_tag("invent.kde.org", "2512");
rpm.version(v);
if rpm.changed() {
rpm.global("commit", get(`https://invent.kde.org/api/v4/projects/2512/repository/tags/${v}`).json().commit.id);
}
Loading