aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lightdm-gtk-greeter
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-18 07:21:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-18 07:21:59 +0000
commitf35d1029f2a6cdcac5e3f5903df5499013976ab0 (patch)
tree6d63bc4dce97b47fd6629af05d93c7caccfc4796 /testing/lightdm-gtk-greeter
parentec6d1886b11963090a7c585518db9d018c982276 (diff)
downloadaports-f35d1029f2a6cdcac5e3f5903df5499013976ab0.tar.bz2
aports-f35d1029f2a6cdcac5e3f5903df5499013976ab0.tar.xz
testing/lightdm-gtk-greeter: new aport
LightDM GTK+ Greeter https://launchpad.net/lightdm-gtk-greeter
Diffstat (limited to 'testing/lightdm-gtk-greeter')
-rw-r--r--testing/lightdm-gtk-greeter/APKBUILD55
-rw-r--r--testing/lightdm-gtk-greeter/lightdm-gtk-greeter-1.8.5-bg_crash.patch12
2 files changed, 67 insertions, 0 deletions
diff --git a/testing/lightdm-gtk-greeter/APKBUILD b/testing/lightdm-gtk-greeter/APKBUILD
new file mode 100644
index 0000000000..fa5303d891
--- /dev/null
+++ b/testing/lightdm-gtk-greeter/APKBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lightdm-gtk-greeter
+pkgver=1.8.5
+pkgrel=0
+pkgdesc="LightDM GTK+ Greeter"
+url="https://launchpad.net/lightdm-gtk-greeter"
+arch="all"
+license="GPLv3+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev gnome-doc-utils gobject-introspection-dev gtk+3.0-dev
+ intltool lightdm-dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="https://launchpad.net/lightdm-gtk-greeter/1.8/$pkgver/+download/lightdm-gtk-greeter-$pkgver.tar.gz
+ lightdm-gtk-greeter-1.8.5-bg_crash.patch
+ "
+
+_builddir="$srcdir"/lightdm-gtk-greeter-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ DATADIRNAME=share ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="ce1384d6738a5757d26091792f29f1e1 lightdm-gtk-greeter-1.8.5.tar.gz
+36ea04fef15e79e6b1bccf901c832b20 lightdm-gtk-greeter-1.8.5-bg_crash.patch"
+sha256sums="22386e787dc64ac372c63cf2cdce47bfa1c791d1cf8b5d3df68df24ecfbf7d68 lightdm-gtk-greeter-1.8.5.tar.gz
+ea8e12973b4e1a75c436564cbd44851a40057d8c6b51c4dc86ed5c37dee154f0 lightdm-gtk-greeter-1.8.5-bg_crash.patch"
+sha512sums="e1091b6e7d470259859b5f76f59db3402ab33e327eaff650275c0a44c8e17858f14c0afbd6815ec9c3283bd09a496ed5b65b27518755ca282719df44a8f6ee18 lightdm-gtk-greeter-1.8.5.tar.gz
+c7273946c1343f56503e2cdc91784a46952db84c3699984c4c0e8bee412c2daba7f0a773dba9e4e2db2f8cdb60e40e67b1008b8cc0b21709c071671753ff01bb lightdm-gtk-greeter-1.8.5-bg_crash.patch"
diff --git a/testing/lightdm-gtk-greeter/lightdm-gtk-greeter-1.8.5-bg_crash.patch b/testing/lightdm-gtk-greeter/lightdm-gtk-greeter-1.8.5-bg_crash.patch
new file mode 100644
index 0000000000..1941eddc90
--- /dev/null
+++ b/testing/lightdm-gtk-greeter/lightdm-gtk-greeter-1.8.5-bg_crash.patch
@@ -0,0 +1,12 @@
+diff -up lightdm-gtk-greeter-1.8.5/src/lightdm-gtk-greeter.c.bg_crash lightdm-gtk-greeter-1.8.5/src/lightdm-gtk-greeter.c
+--- lightdm-gtk-greeter-1.8.5/src/lightdm-gtk-greeter.c.bg_crash 2014-05-05 13:39:10.833190035 -0500
++++ lightdm-gtk-greeter-1.8.5/src/lightdm-gtk-greeter.c 2014-05-05 13:41:53.725481558 -0500
+@@ -2060,7 +2060,7 @@ set_background (GdkPixbuf *new_bg)
+ {
+ gdk_screen_get_monitor_geometry (screen, monitor, &monitor_geometry);
+
+- if (bg)
++ if (bg && (monitor_geometry.width > 0) && (monitor_geometry.height > 0))
+ {
+ p_width = gdk_pixbuf_get_width (bg);
+ p_height = gdk_pixbuf_get_height (bg);