diff --git a/srcpkgs/lightdm-kde-greeter/patches/findlightdm.patch b/srcpkgs/lightdm-kde-greeter/patches/findlightdm.patch new file mode 100644 index 00000000000..b940c613fce --- /dev/null +++ b/srcpkgs/lightdm-kde-greeter/patches/findlightdm.patch @@ -0,0 +1,33 @@ +--- cmake/modules/FindQLightDM.cmake ++++ cmake/modules/FindQLightDM.cmake +@@ -19,10 +19,19 @@ + find_package(PkgConfig) + if(PKG_CONFIG_FOUND) + if (QLIGHTDM_MIN_VERSION) +- PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2>=${QLIGHTDM_MIN_VERSION}) ++ PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-3>=${QLIGHTDM_MIN_VERSION}) + else (QLIGHTDM_MIN_VERSION) +- PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2) ++ PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-3) + endif (QLIGHTDM_MIN_VERSION) ++ SET (QLIGHTDM_API 3) ++ if (NOT PC_QLIGHTDM_FOUND) ++ if (QLIGHTDM_MIN_VERSION) ++ PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2>=${QLIGHTDM_MIN_VERSION}) ++ else (QLIGHTDM_MIN_VERSION) ++ PKG_CHECK_MODULES(PC_QLIGHTDM liblightdm-qt-2) ++ endif (QLIGHTDM_MIN_VERSION) ++ SET (QLIGHTDM_API 2) ++ endif (NOT PC_QLIGHTDM_FOUND) + endif(PKG_CONFIG_FOUND) + + +@@ -34,7 +43,7 @@ + ) + + find_library(QLIGHTDM_LIBRARIES +- NAMES lightdm-qt-2 ++ NAMES lightdm-qt-${QLIGHTDM_API} + HINTS + ${PC_QLIGHTDM_LIBDIR} + ${PC_QLIGHTDM_LIBRARY_DIRS} diff --git a/srcpkgs/lightdm-kde-greeter/template b/srcpkgs/lightdm-kde-greeter/template new file mode 100644 index 00000000000..0f9ccb2e37b --- /dev/null +++ b/srcpkgs/lightdm-kde-greeter/template @@ -0,0 +1,24 @@ +# Template file for 'lightdm-kde-greeter' +pkgname=lightdm-kde-greeter +version=0.3.2.2 +revision=1 +wrksrc="lightdm-0.3.2.1" +build_style=cmake +hostmakedepends="cmake automoc4 qt-qmake perl pkg-config" +makedepends="kdelibs-devel qt-devel phonon-devel lightdm-devel>=1.8" +depends="lightdm" +conf_files=" + /etc/lightdm/lightdm-kde-greeter.conf + /etc/dbus-1/system.d/org.kde.kcontrol.kcmlightdm.conf" +short_desc="Light Display Manager greeter for KDE (QT 4.x)" +maintainer="Juan RP " +license="GPL-3, LGPL-3" +homepage="https://projects.kde.org/projects/playground/base/lightdm" +distfiles="ftp://ftp.kde.org/pub/kde/unstable/${pkgname%-*}/src/${pkgname%%-*}-${version}.tar.bz2" +checksum=7948ef6a5f6639abd61be02cbdf886823b0d227b4411361737d1a44cca606b09 + +post_install() { + vmkdir etc/lightdm + echo "[greeter]" >> ${DESTDIR}//etc/lightdm/lightdm-kde-greeter.conf + echo "theme-name=classic" >> ${DESTDIR}//etc/lightdm/lightdm-kde-greeter.conf +}