diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-05-30 14:08:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-05-30 14:08:09 +0000 |
commit | 7e0729a56e862aa2bd49cadbc97e27bcc5d249c6 (patch) | |
tree | d9a689ace152c6cd1c5129bdb09f0213cc8ffd41 /unmaintained | |
parent | 519436395c335b728ec8faeeb5e61f13b49d8689 (diff) | |
download | aports-7e0729a56e862aa2bd49cadbc97e27bcc5d249c6.tar.bz2 aports-7e0729a56e862aa2bd49cadbc97e27bcc5d249c6.tar.xz |
main/gnome-screensaver: moved to unmaintained
Diffstat (limited to 'unmaintained')
5 files changed, 118 insertions, 0 deletions
diff --git a/unmaintained/gnome-screensaver/APKBUILD b/unmaintained/gnome-screensaver/APKBUILD new file mode 100644 index 0000000000..eeeab1d6ff --- /dev/null +++ b/unmaintained/gnome-screensaver/APKBUILD @@ -0,0 +1,71 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=gnome-screensaver +pkgver=2.30.2 +pkgrel=3 +pkgdesc="GNOME screensaver collection" +url="http://www.gnome.org" +arch="all" +license="GPL" +depends= +depends_dev="gtk+-dev + gconf-dev + libx11-dev + gnome-doc-utils + libgnome-dev + libwnck-dev + libnotify-dev + libunique-dev + + gnome-desktop-dev + gnome-menus-dev + + libxcursor-dev + libxcomposite-dev + libxi-dev + libxau-dev + libxdmcp-dev + libxext-dev + libxcb-dev + libxrender-dev + libxrandr-dev" +makedepends="$depends_dev intltool gobject-introspection-dev" +install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade" +subpackages="$pkgname-lang" +source="ftp://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 + gnome-screensaver-2.30.2-libnotify-0.7.patch" + +_builddir="${srcdir}/${pkgname}-${pkgver}" +prepare() { + local i + cd "$_builddir" + update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-applets \ + --disable-scrollkeeper \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + + export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="0fbe6e610e6847ac1e69d49b1e1f0582 gnome-screensaver-2.30.2.tar.bz2 +e517e9d432e97f89b706655dae21ed71 gnome-screensaver-2.30.2-libnotify-0.7.patch" diff --git a/unmaintained/gnome-screensaver/gnome-screensaver-2.30.2-libnotify-0.7.patch b/unmaintained/gnome-screensaver/gnome-screensaver-2.30.2-libnotify-0.7.patch new file mode 100644 index 0000000000..6eeb168190 --- /dev/null +++ b/unmaintained/gnome-screensaver/gnome-screensaver-2.30.2-libnotify-0.7.patch @@ -0,0 +1,26 @@ +diff -Nur gnome-screensaver-2.30.2.orig/src/gs-lock-plug.c gnome-screensaver-2.30.2/src/gs-lock-plug.c +--- gnome-screensaver-2.30.2.orig/src/gs-lock-plug.c 2010-09-28 13:36:51.000000000 -0700 ++++ gnome-screensaver-2.30.2/src/gs-lock-plug.c 2011-03-07 00:54:44.086669840 -0800 +@@ -47,6 +47,10 @@ + #include <libnotify/notify.h> + #endif + ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++ + #include "gs-lock-plug.h" + + #include "gs-debug.h" +@@ -1090,7 +1094,11 @@ + strftime (summary, 128, "%X", tmp); + + notify_init ("gnome-screensaver-dialog"); ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ note = notify_notification_new (summary, escaped_text, NULL); ++#else + note = notify_notification_new (summary, escaped_text, NULL, NULL); ++#endif + notify_notification_set_timeout (note, NOTIFY_EXPIRES_NEVER); + notify_notification_show (note, NULL); + g_object_unref (note); diff --git a/unmaintained/gnome-screensaver/gnome-screensaver.post-install b/unmaintained/gnome-screensaver/gnome-screensaver.post-install new file mode 100644 index 0000000000..49ca99c158 --- /dev/null +++ b/unmaintained/gnome-screensaver/gnome-screensaver.post-install @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in gnome-screensaver.schemas; do + echo "Installing GConf2 schema $i." + GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ + /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i >/dev/null +done diff --git a/unmaintained/gnome-screensaver/gnome-screensaver.post-upgrade b/unmaintained/gnome-screensaver/gnome-screensaver.post-upgrade new file mode 100644 index 0000000000..49ca99c158 --- /dev/null +++ b/unmaintained/gnome-screensaver/gnome-screensaver.post-upgrade @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in gnome-screensaver.schemas; do + echo "Installing GConf2 schema $i." + GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ + /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i >/dev/null +done diff --git a/unmaintained/gnome-screensaver/gnome-screensaver.pre-deinstall b/unmaintained/gnome-screensaver/gnome-screensaver.pre-deinstall new file mode 100644 index 0000000000..1aebff8243 --- /dev/null +++ b/unmaintained/gnome-screensaver/gnome-screensaver.pre-deinstall @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in gnome-screensaver.schemas; do + echo "Uninstalling GConf2 schema $i." + GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \ + /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/$i >/dev/null +done |