summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD35
-rw-r--r--brightside-1.4.0-wnck.patch20
-rw-r--r--brightside.install17
4 files changed, 97 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0f2508aed2b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v7
+# Mon Jan 4 10:57:11 UTC 2016
+pkgbase = brightside
+ pkgdesc = A tool to set up hotcorners regardless of the WM or DE in use
+ pkgver = 1.4.0
+ pkgrel = 1
+ url = http://linux.softpedia.com/get/Desktop-Environment/Tools/Brightside-3672.shtml
+ install = brightside.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = intltool
+ depends = alsa-lib
+ depends = gconf
+ depends = libglade
+ depends = libgnomeui
+ depends = libwnck
+ depends = popt
+ source = http://pkgs.fedoraproject.org/repo/pkgs/brightside/brightside-1.4.0.tar.bz2/df6dfe0ffbf110036fa1a5549b21e9c3/brightside-1.4.0.tar.bz2
+ source = brightside-1.4.0-wnck.patch
+ sha1sums = 39cc63fe01b175ca4cfc2ae23b8aadbf2b30e93c
+ sha1sums = 75952642c5d2e538b61bd5fedda3cca93e5c051c
+
+pkgname = brightside
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..55fd6c24860
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Stefano Capitani (Ste74) <capitani74atgmaildotcom
+# Maintainer: Edoardo Maria Elidoro <edoardo.elidoro@gmail.com>
+
+pkgname=brightside
+pkgver=1.4.0
+pkgrel=1
+pkgdesc="A tool to set up hotcorners regardless of the WM or DE in use"
+arch=('i686' 'x86_64')
+url="http://linux.softpedia.com/get/Desktop-Environment/Tools/Brightside-3672.shtml"
+license=('GPL2')
+depends=('alsa-lib' 'gconf' 'libglade' 'libgnomeui' 'libwnck' 'popt')
+makedepends=('intltool')
+install=$pkgname.install
+source=('http://pkgs.fedoraproject.org/repo/pkgs/brightside/brightside-1.4.0.tar.bz2/df6dfe0ffbf110036fa1a5549b21e9c3/brightside-1.4.0.tar.bz2'
+ 'brightside-1.4.0-wnck.patch')
+sha1sums=('39cc63fe01b175ca4cfc2ae23b8aadbf2b30e93c'
+ '75952642c5d2e538b61bd5fedda3cca93e5c051c')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ patch -Np1 -i "$srcdir"/brightside-1.4.0-wnck.patch
+ # gconf install path fix
+ sed -i '/^schemadir =/s| = \$(sysconfdir)| = \$(datadir)|' src/Makefile.in
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ LDFLAGS='-lX11' ./configure prefix=/usr --enable-tray-icon
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
+}
diff --git a/brightside-1.4.0-wnck.patch b/brightside-1.4.0-wnck.patch
new file mode 100644
index 00000000000..a77302e2b36
--- /dev/null
+++ b/brightside-1.4.0-wnck.patch
@@ -0,0 +1,20 @@
+--- brightside-1.4.0/src/brightside.c 2005/03/14 09:36:41 1.1
++++ brightside-1.4.0/src/brightside.c 2005/03/14 09:37:50
+@@ -1253,7 +1253,7 @@ applet_scroll (GtkWidget *pager, GdkEven
+
+ new_workspace = wnck_screen_get_workspace (brightside->screen, new_index);
+ if (new_workspace) {
+- wnck_workspace_activate (new_workspace);
++ wnck_workspace_activate (new_workspace, gtk_get_current_event_time ());
+ pager_show (brightside, new_workspace, n_rows, TRUE);
+ }
+
+@@ -1540,7 +1540,7 @@ do_edge_flip (Brightside *brightside, gi
+
+ new_workspace = wnck_screen_get_workspace (
+ brightside->screen, new_space);
+- wnck_workspace_activate (new_workspace);
++ wnck_workspace_activate (new_workspace, gtk_get_current_event_time ());
+
+ pager_show (brightside, new_workspace, rows, FALSE);
+
diff --git a/brightside.install b/brightside.install
new file mode 100644
index 00000000000..f70e7767d60
--- /dev/null
+++ b/brightside.install
@@ -0,0 +1,17 @@
+pkgname=brightside
+
+post_install() {
+ usr/sbin/gconfpkg --install "$pkgname"
+}
+
+pre_upgrade() {
+ pre_remove "$1"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall "$pkgname"
+}