Skip to content

Instantly share code, notes, and snippets.

@NicoHood NicoHood/PKGBUILD Secret
Created Jul 30, 2017

Embed
What would you like to do?
pantheonlightdm
diff -rupN pantheon-greeter-3.0.orig/CMakeLists.txt pantheon-greeter-3.0/CMakeLists.txt
--- pantheon-greeter-3.0.orig/CMakeLists.txt 2016-08-21 11:37:55.995777536 +0200
+++ pantheon-greeter-3.0/CMakeLists.txt 2016-08-21 11:38:30.831075901 +0200
@@ -8,7 +8,7 @@ list (APPEND CMAKE_MODULE_PATH ${CMAKE_S
set (CONF_DIR "/etc/lightdm")
set (DATADIR "${CMAKE_INSTALL_PREFIX}/share")
-set (PKGDATADIR "${DATADIR}/pantheon-greeter")
+set (PKGDATADIR "${DATADIR}/lightdm-pantheon-greeter")
set (CMAKE_INSTALL_PREFIX /usr)
set (VERSION "3.1.1")
@@ -61,10 +61,10 @@ add_subdirectory (po)
include (GSettings)
-add_executable (pantheon-greeter ${VALA_C})
-target_link_libraries(pantheon-greeter m)
+add_executable (lightdm-pantheon-greeter ${VALA_C})
+target_link_libraries(lightdm-pantheon-greeter m)
-install (TARGETS pantheon-greeter RUNTIME DESTINATION sbin)
-install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/pantheon-greeter.desktop DESTINATION share/xgreeters)
-install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/pantheon-greeter.conf DESTINATION ${CONF_DIR})
+install (TARGETS lightdm-pantheon-greeter RUNTIME DESTINATION bin)
+install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/lightdm-pantheon-greeter.desktop DESTINATION share/xgreeters)
+install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/lightdm-pantheon-greeter.conf DESTINATION ${CONF_DIR})
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/fingerprint.svg DESTINATION ${PKGDATADIR})
diff -rupN pantheon-greeter-3.0.orig/data/lightdm-pantheon-greeter.conf pantheon-greeter-3.0/data/lightdm-pantheon-greeter.conf
--- pantheon-greeter-3.0.orig/data/lightdm-pantheon-greeter.conf 1970-01-01 01:00:00.000000000 +0100
+++ pantheon-greeter-3.0/data/lightdm-pantheon-greeter.conf 2016-08-21 11:38:30.834409115 +0200
@@ -0,0 +1,6 @@
+[greeter]
+#activate-numlock=true
+#default-wallpaper=/usr/share/backgrounds/elementaryos-default
+#high-contrast=false
+#onscreen-keyboard=false
+#screensaver-timeout=60
diff -rupN pantheon-greeter-3.0.orig/data/lightdm-pantheon-greeter.desktop pantheon-greeter-3.0/data/lightdm-pantheon-greeter.desktop
--- pantheon-greeter-3.0.orig/data/lightdm-pantheon-greeter.desktop 1970-01-01 01:00:00.000000000 +0100
+++ pantheon-greeter-3.0/data/lightdm-pantheon-greeter.desktop 2016-08-21 11:39:32.895790706 +0200
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Pantheon Greeter
+Comment=Pantheon Greeter
+Exec=lightdm-pantheon-greeter
+Type=Application
+X-Ubuntu-Gettext-Domain=pantheon-greeter
+Name[en_US]=pantheon-greeter
diff -rupN pantheon-greeter-3.0.orig/data/pantheon-greeter.conf pantheon-greeter-3.0/data/pantheon-greeter.conf
--- pantheon-greeter-3.0.orig/data/pantheon-greeter.conf 2016-08-21 11:37:55.995777536 +0200
+++ pantheon-greeter-3.0/data/pantheon-greeter.conf 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-[greeter]
-#activate-numlock=true
-#default-wallpaper=/usr/share/backgrounds/elementaryos-default
-#high-contrast=false
-#onscreen-keyboard=false
-#screensaver-timeout=60
diff -rupN pantheon-greeter-3.0.orig/data/pantheon-greeter.desktop pantheon-greeter-3.0/data/pantheon-greeter.desktop
--- pantheon-greeter-3.0.orig/data/pantheon-greeter.desktop 2016-08-21 11:37:55.995777536 +0200
+++ pantheon-greeter-3.0/data/pantheon-greeter.desktop 1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-[Desktop Entry]
-Name=Pantheon Greeter
-Comment=Pantheon Greeter
-Exec=pantheon-greeter
-Type=Application
-X-Ubuntu-Gettext-Domain=pantheon-greeter
-Name[en_US]=pantheon-greeter
diff -rupN pantheon-greeter-3.0.orig/src/PantheonGreeter.vala pantheon-greeter-3.0/src/PantheonGreeter.vala
--- pantheon-greeter-3.0.orig/src/PantheonGreeter.vala 2016-08-21 11:37:55.999110726 +0200
+++ pantheon-greeter-3.0/src/PantheonGreeter.vala 2016-08-21 11:38:30.837742328 +0200
@@ -104,7 +104,7 @@ public class PantheonGreeter : Gtk.Windo
settings = new KeyFile ();
try {
- settings.load_from_file (Path.build_filename (Constants.CONF_DIR, "pantheon-greeter.conf"), KeyFileFlags.KEEP_COMMENTS);
+ settings.load_from_file (Path.build_filename (Constants.CONF_DIR, "lightdm-pantheon-greeter.conf"), KeyFileFlags.KEEP_COMMENTS);
} catch (Error e) {
warning (e.message);
}
@@ -433,7 +433,7 @@ public class PantheonGreeter : Gtk.Windo
}
public static int main (string [] args) {
- message ("Starting pantheon-greeter...");
+ message ("Starting lightdm-pantheon-greeter...");
/* Protect memory from being paged to disk, as we deal with passwords */
Posix.mlockall (Posix.MCL_CURRENT | Posix.MCL_FUTURE);
diff -rupN pantheon-greeter-3.0.orig/src/Wallpaper.vala pantheon-greeter-3.0/src/Wallpaper.vala
--- pantheon-greeter-3.0.orig/src/Wallpaper.vala 2016-08-21 11:37:55.999110726 +0200
+++ pantheon-greeter-3.0/src/Wallpaper.vala 2016-08-21 11:38:30.837742328 +0200
@@ -53,7 +53,7 @@ public class Wallpaper : GtkClutter.Acto
var settings = new KeyFile ();
string default_wallpaper = "/usr/share/backgrounds/elementaryos-default";
try {
- settings.load_from_file (Constants.CONF_DIR + "/pantheon-greeter.conf", KeyFileFlags.KEEP_COMMENTS);
+ settings.load_from_file (Constants.CONF_DIR + "/lightdm-pantheon-greeter.conf", KeyFileFlags.KEEP_COMMENTS);
default_wallpaper = settings.get_string ("greeter", "default-wallpaper");
} catch (Error e) {
warning (e.message);
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
pkgname=lightdm-pantheon-greeter
_pkgname=greeter
pkgver=3.1.1
pkgrel=1
pkgdesc='Pantheon greeter for LightDM'
arch=('i686' 'x86_64')
url='https://launchpad.net/pantheon-greeter'
license=('GPL3')
depends=('cairo' 'clutter' 'clutter-gtk' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk3'
'libgee' 'libgl' 'libx11' 'lightdm'
'granite' 'wingpanel')
makedepends=('cmake' 'vala' 'wingpanel')
_commit='e78350f6ecaa31d585be5ae3682445e5f31e2858'
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/elementary/${_pkgname}/archive/${_commit}.tar.gz"
'lightdm-pantheon-greeter-paths.patch')
sha512sums=('ae9196401cafc02e935bc2af641936208d699ebe918303d9af5382e83c5a4344e4ae65cf56fcebf4124abefe9efb07ef7d7c4ab0b2c5d1bcf198afa839173dc3'
'1bdbf952e9e24117b2e0345c88ebf84e5f5b60581b6db1d8b3bba01074d65058ee366a649e333051be193b99d5c693be18d191ffaac5d6f931f17c42ff9376a5')
prepare() {
cd "${_pkgname}-${_commit}"
patch --verbose -Np1 -i ../lightdm-pantheon-greeter-paths.patch
mkdir -p build
}
build() {
cd "${_pkgname}-${_commit}"/build
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DGSETTINGS_COMPILE='FALSE'
make
}
package() {
cd "${_pkgname}-${_commit}"/build
make DESTDIR="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.