New package: lightdm-kde-greeter-0.3.2.2.

This commit is contained in:
Juan RP 2015-02-23 13:00:54 +01:00
parent 6ac58b5aec
commit bea327221f
2 changed files with 57 additions and 0 deletions

View file

@ -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}

View file

@ -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 <xtraeme@gmail.com>"
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
}