diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-15 03:33:23 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-15 03:33:23 +0000 |
commit | 34276794ce110cd2f9204e4b504aea41fb584145 (patch) | |
tree | 614343b8dd17e74468019c46daabd3861ef8dfbc /community/lightdm-gtk3-greeter | |
parent | 86a5624291a8a72d9a0a2c51fcc64bf6e221524b (diff) |
Sat Feb 15 03:31:19 UTC 2014
Diffstat (limited to 'community/lightdm-gtk3-greeter')
-rwxr-xr-x | community/lightdm-gtk3-greeter/PKGBUILD | 23 | ||||
-rw-r--r-- | community/lightdm-gtk3-greeter/fix-null-username.patch | 83 | ||||
-rw-r--r-- | community/lightdm-gtk3-greeter/lightdm-gtk-greeter.install | 13 |
3 files changed, 21 insertions, 98 deletions
diff --git a/community/lightdm-gtk3-greeter/PKGBUILD b/community/lightdm-gtk3-greeter/PKGBUILD index 785711d1e..c084d4695 100755 --- a/community/lightdm-gtk3-greeter/PKGBUILD +++ b/community/lightdm-gtk3-greeter/PKGBUILD @@ -1,30 +1,23 @@ -# $Id: PKGBUILD 105173 2014-02-02 11:18:41Z alucryd $ +# $Id: PKGBUILD 105739 2014-02-14 18:25:52Z alucryd $ # Maintainer: Maxime Gauduin <alucryd@gmail.com> # Contributor: Padfoot <padfoot@exemail.com.au> pkgname=lightdm-gtk3-greeter -pkgver=1.6.1 -pkgrel=2 +pkgver=1.8.1 +pkgrel=1 epoch=1 -pkgdesc="GTK+ greeter for LightDM" +pkgdesc='GTK+ greeter for LightDM' arch=('i686' 'x86_64') -url="https://launchpad.net/lightdm-gtk-greeter" +url='https://launchpad.net/lightdm-gtk-greeter' license=('GPL3' 'LGPL3') depends=('gtk3' 'lightdm') makedepends=('exo' 'gnome-doc-utils' 'gobject-introspection' 'intltool') provides=("${pkgname/3/}") conflicts=("${pkgname/3/2}") backup=('etc/lightdm/lightdm-gtk-greeter.conf') -source=("https://launchpad.net/${pkgname/3/}/1.6/${pkgver}/+download/${pkgname/3/}-${pkgver}.tar.gz" - 'fix-null-username.patch') -sha256sums=('1f0286ab093d50151f0efc46496aef3f8ed8c7306bbc81807a3fdcbcb2a468d9' - '27e1ec5f73f963ea5fbc69d4b380dbfa47a4066b35fa1a00341203568d9aa64d') - -prepare() { - cd ${pkgname/3/}-${pkgver} - - patch -Np0 -i ../fix-null-username.patch -} +install="${pkgname/3/}.install" +source=("https://launchpad.net/${pkgname/3/}/${pkgver%.?}/${pkgver}/+download/${pkgname/3/}-${pkgver}.tar.gz") +sha256sums=('dac5ce9ac54a6b3c1ef9f9cc056f13f01352c2a897c5bed11e52505132610bab') build() { cd ${pkgname/3/}-${pkgver} diff --git a/community/lightdm-gtk3-greeter/fix-null-username.patch b/community/lightdm-gtk3-greeter/fix-null-username.patch deleted file mode 100644 index 63cdf83c1..000000000 --- a/community/lightdm-gtk3-greeter/fix-null-username.patch +++ /dev/null @@ -1,83 +0,0 @@ -=== modified file 'src/lightdm-gtk-greeter.c' ---- src/lightdm-gtk-greeter.c 2014-01-07 11:02:12 +0000 -+++ src/lightdm-gtk-greeter.c 2014-01-08 00:21:56 +0000 -@@ -333,7 +333,7 @@ - gchar *s; - gboolean matched; - s = g_strdup(g_object_get_data (G_OBJECT (menu_iter->data), "session-key")); -- matched = strcmp (s, session) == 0; -+ matched = g_strcmp0 (s, session) == 0; - g_free (s); - if (matched) - { -@@ -402,7 +402,7 @@ - gchar *s; - gboolean matched; - s = g_strdup(g_object_get_data (G_OBJECT (menu_iter->data), "language-code")); -- matched = strcmp (s, language) == 0; -+ matched = g_strcmp0 (s, language) == 0; - g_free (s); - if (matched) - { -@@ -423,7 +423,7 @@ - static void - set_message_label (const gchar *text) - { -- gtk_widget_set_visible (GTK_WIDGET (info_bar), strcmp (text, "") != 0); -+ gtk_widget_set_visible (GTK_WIDGET (info_bar), g_strcmp0 (text, "") != 0); - gtk_label_set_text (message_label, text); - } - -@@ -633,13 +633,13 @@ - } - g_free (data); - -- if (strcmp (username, "*other") == 0) -+ if (g_strcmp0 (username, "*other") == 0) - { - gtk_widget_show (GTK_WIDGET (username_entry)); - gtk_widget_show (GTK_WIDGET (cancel_button)); - lightdm_greeter_authenticate (greeter, NULL); - } -- else if (strcmp (username, "*guest") == 0) -+ else if (g_strcmp0 (username, "*guest") == 0) - { - lightdm_greeter_authenticate_as_guest (greeter); - } -@@ -689,7 +689,7 @@ - gchar *user; - - gtk_tree_model_get (GTK_TREE_MODEL (model), &iter, 0, &user, -1); -- other = (strcmp (user, "*other") == 0); -+ other = (g_strcmp0 (user, "*other") == 0); - g_free (user); - } - -@@ -964,7 +964,7 @@ - - gtk_tree_model_get (GTK_TREE_MODEL (model), &iter, 0, &user, -1); - -- if (strcmp (user, "*other") == 0) -+ if (g_strcmp0 (user, "*other") == 0) - { - gtk_widget_show (GTK_WIDGET (username_entry)); - gtk_widget_show (GTK_WIDGET (cancel_button)); -@@ -1463,7 +1463,7 @@ - do - { - gtk_tree_model_get (model, &iter, 0, &name, -1); -- matched = strcmp (name, selected_user) == 0; -+ matched = g_strcmp0 (name, selected_user) == 0; - g_free (name); - if (matched) - { -@@ -1954,7 +1954,7 @@ - g_object_set (gtk_settings_get_default (), "gtk-xft-dpi", (int) (1024 * atof (value)), NULL); - value = g_key_file_get_value (config, "greeter", "xft-antialias", NULL); - if (value) -- g_object_set (gtk_settings_get_default (), "gtk-xft-antialias", strcmp (value, "true") == 0, NULL); -+ g_object_set (gtk_settings_get_default (), "gtk-xft-antialias", g_strcmp0 (value, "true") == 0, NULL); - g_free (value); - value = g_key_file_get_value (config, "greeter", "xft-hintstyle", NULL); - if (value) - diff --git a/community/lightdm-gtk3-greeter/lightdm-gtk-greeter.install b/community/lightdm-gtk3-greeter/lightdm-gtk-greeter.install new file mode 100644 index 000000000..b72f4439b --- /dev/null +++ b/community/lightdm-gtk3-greeter/lightdm-gtk-greeter.install @@ -0,0 +1,13 @@ +post_install() { + gtk-update-icon-cache -ftq usr/share/icons/hicolor +} + +post_update() { + post_install +} + +post_remove() { + post_install +} + +# vim: ts=2 sw=2 et: |