diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-10-08 22:20:37 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-10-08 22:20:37 -0300 |
commit | fccf9769e2c26f577f6214ed9d0dbb30cb8c51bd (patch) | |
tree | cc5312eeed95e18d8e2c6009c568f3d32501bc01 /community/tint2 | |
parent | 69962c022fb4ed68b9163e60183fff714308e4e3 (diff) | |
parent | 3a0ad5dc35d5cff379cdfc736b9cae856416fe6a (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/abe/PKGBUILD
community/account-plugins/PKGBUILD
community/adesklets/PKGBUILD
community/aircrack-ng/PKGBUILD
community/audit/PKGBUILD
community/bchunk/PKGBUILD
community/bibutils/PKGBUILD
community/cantata/PKGBUILD
community/cdck/PKGBUILD
community/cinnamon-control-center/PKGBUILD
community/clusterssh/PKGBUILD
community/consonance/PKGBUILD
community/credentials-preferences/PKGBUILD
community/dee/PKGBUILD
community/dosbox/PKGBUILD
community/drbd/PKGBUILD
community/dvdisaster/PKGBUILD
community/ekg/PKGBUILD
community/ekg2/PKGBUILD
community/emelfm2/PKGBUILD
community/erlang/PKGBUILD
community/ettercap/PKGBUILD
community/evilwm/PKGBUILD
community/fatrat/PKGBUILD
community/fcitx-mozc/PKGBUILD
community/fcrackzip/PKGBUILD
community/ffmpegsource/PKGBUILD
community/fssos-nsvs/PKGBUILD
community/geda-gaf/PKGBUILD
community/gnome-applets/PKGBUILD
community/gnome-panel/PKGBUILD
community/gnustep-make/PKGBUILD
community/gwibber/PKGBUILD
community/html2text/PKGBUILD
community/intellij-idea-libs/PKGBUILD
community/libcgns2/PKGBUILD
community/libmatio/PKGBUILD
community/librcc/PKGBUILD
community/libsignon-glib/PKGBUILD
community/linux-tools/PKGBUILD
community/minitube/PKGBUILD
community/mpdscribble/PKGBUILD
community/mplayer2/PKGBUILD
community/musepack-tools/PKGBUILD
community/nginx/PKGBUILD
community/pam_pwcheck/PKGBUILD
community/portaudio/PKGBUILD
community/portaudio_cpp/PKGBUILD
community/prelink/PKGBUILD
community/projectm/PKGBUILD
community/prosody/PKGBUILD
community/python-basemap/PKGBUILD
community/qgit/PKGBUILD
community/raptor1/PKGBUILD
community/sensors-applet/PKGBUILD
community/signon-keyring-extension/PKGBUILD
community/signon-plugin-oauth2/PKGBUILD
community/signon-ui/PKGBUILD
community/sshguard/PKGBUILD
community/tea/PKGBUILD
community/tint2/PKGBUILD
community/tremulous/PKGBUILD
community/vobcopy/PKGBUILD
community/windowlab/PKGBUILD
community/xdelta/PKGBUILD
community/xmms2/PKGBUILD
community/xosd/PKGBUILD
core/gdbm/PKGBUILD
core/heirloom-mailx/PKGBUILD
core/libffi/PKGBUILD
core/procps-ng/PKGBUILD
core/systemd/PKGBUILD
core/tar/PKGBUILD
cross/mips64el-unknown-linux-gnu-linux-libre-api-headers/PKGBUILD
extra/arj/PKGBUILD
extra/audacity/PKGBUILD
extra/cdparanoia/PKGBUILD
extra/elfutils/PKGBUILD
extra/fltk/PKGBUILD
extra/gnome-python-desktop/PKGBUILD
extra/gstreamer/PKGBUILD
extra/gtk2/PKGBUILD
extra/gvfs/PKGBUILD
extra/imagemagick/PKGBUILD
extra/indent/PKGBUILD
extra/kdepim/PKGBUILD
extra/lcms/PKGBUILD
extra/lesstif/PKGBUILD
extra/libchewing/PKGBUILD
extra/libdrm/PKGBUILD
extra/libmodplug/PKGBUILD
extra/libnotify/PKGBUILD
extra/libsm/PKGBUILD
extra/libxmu/PKGBUILD
extra/libxpm/PKGBUILD
extra/mariadb/PKGBUILD
extra/mesa/PKGBUILD
extra/mkvtoolnix/PKGBUILD
extra/neon/PKGBUILD
extra/ocaml/PKGBUILD
extra/phonon-vlc/PKGBUILD
extra/php-xcache/PKGBUILD
extra/polkit/PKGBUILD
extra/pycups/PKGBUILD
extra/python-cairo/PKGBUILD
extra/python/PKGBUILD
extra/ruby/PKGBUILD
extra/sqlite/PKGBUILD
extra/talloc/PKGBUILD
extra/thunar-archive-plugin/PKGBUILD
extra/totem-plparser/PKGBUILD
extra/totem/PKGBUILD
extra/vinagre/PKGBUILD
extra/vino/PKGBUILD
extra/vlc/PKGBUILD
extra/wget/PKGBUILD
extra/xine-lib/PKGBUILD
extra/xorg-server/PKGBUILD
extra/xorg-twm/PKGBUILD
extra/xorg-xclipboard/PKGBUILD
extra/xorg-xclock/PKGBUILD
extra/xorg-xkill/PKGBUILD
extra/xorg-xlsclients/PKGBUILD
extra/xorg-xman/PKGBUILD
extra/xorg-xrdb/PKGBUILD
extra/xpdf/PKGBUILD
extra/xvidcore/PKGBUILD
extra/yelp/PKGBUILD
libre/audacious-plugins-libre/PKGBUILD
libre/mc-libre/PKGBUILD
libre/python2-reportlab-libre/PKGBUILD
Diffstat (limited to 'community/tint2')
-rw-r--r-- | community/tint2/PKGBUILD | 35 | ||||
-rw-r--r-- | community/tint2/fix_defunct_processes.patch | 31 | ||||
-rw-r--r-- | community/tint2/middle_click_on_clock.patch | 75 |
3 files changed, 127 insertions, 14 deletions
diff --git a/community/tint2/PKGBUILD b/community/tint2/PKGBUILD index c45639ddb..80cb4575b 100644 --- a/community/tint2/PKGBUILD +++ b/community/tint2/PKGBUILD @@ -1,43 +1,50 @@ -# $Id: PKGBUILD 64903 2012-02-18 20:04:04Z bpiotrowski $ +# $Id: PKGBUILD 97618 2013-09-25 18:19:34Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Contributor: Blue Peppers <bluepeppers@archlinux.us> # Contributor: Stefan Husmann< stefan-husmann@t-online.de> pkgname=tint2 pkgver=0.11 -pkgrel=5 -pkgdesc="A basic, good-looking task manager for WMs" +pkgrel=6 +pkgdesc='Basic, good-looking task manager for WMs' arch=('i686' 'x86_64' 'mips64el') url="http://code.google.com/p/tint2/" license=('GPL2') conflicts=('ttm-svn' 'tint') replaces=('tint') depends=('gtk2' 'imlib2') -optdepends=('pygtk: for using tint2conf') +optdepends=('pygtk: for tint2wizard') makedepends=('pygtk' 'cmake') provides=('tint') -source=("http://$pkgname.googlecode.com/files/$pkgname-${pkgver}.tar.bz2" - 'add-power-now-support.patch') +source=(http://tint2.googlecode.com/files/tint2-$pkgver.tar.bz2 + add-power-now-support.patch + fix_defunct_processes.patch + middle_click_on_clock.patch) md5sums=('6fc5731e7425125fa84a2add5cef4bff' - '6cfcad028f1bd2f69812167f5395f890') + '6cfcad028f1bd2f69812167f5395f890' + 'b3d052ac5ada81c56e36133b1ecdee8c' + 'f7918d29a87422aab6fb9d922867d8f8') -build() { - cd "$srcdir/$pkgname-${pkgver}" +prepare() { + cd $pkgname-$pkgver - # add support for power_now battery attribute (fixes FS#21954) patch -Np0 -i ../add-power-now-support.patch + patch -Np0 -i ../fix_defunct_processes.patch + patch -Np0 -i ../middle_click_on_clock.patch # python2 fix sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' src/tint2conf/tintwizard.py sed -i 's_python _python2 _' src/tint2conf/main.c +} + +build() { + cd $pkgname-$pkgver - [ -d build ] || mkdir build - cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr ../ + cmake -DCMAKE_INSTALL_PREFIX=/usr . make } package() { - cd "$srcdir/$pkgname-${pkgver}/build" + cd $pkgname-$pkgver make DESTDIR="$pkgdir" install } diff --git a/community/tint2/fix_defunct_processes.patch b/community/tint2/fix_defunct_processes.patch new file mode 100644 index 000000000..28ea6c27a --- /dev/null +++ b/community/tint2/fix_defunct_processes.patch @@ -0,0 +1,31 @@ +http://code.google.com/p/tint2/issues/detail?id=430 +Submitted By: David B. Cortarello (Nomius) <dcortarello at gmail dot com> +Date: 18-05-2013 +Initial Package Version: subversion trunk (revision 652) +Description: Fix zombie (defunct) processes created in clock_action. +This patch provides the following bugfixes: + * This patch uses waitpid with WNOHANG to eliminate all zombie processes created by tint2 (in particular by the clock -right or left- click). This is done by a small hack in the update_clocks_min, called to "redraw" that area. + +--- src/clock/clock.c (revision 652) ++++ src/clock/clock.c (working copy) +@@ -23,6 +23,8 @@ + #include <cairo-xlib.h> + #include <pango/pangocairo.h> + #include <stdlib.h> ++#include <sys/types.h> ++#include <sys/wait.h> + + #include "window.h" + #include "server.h" +@@ -98,6 +103,10 @@ + // remember old_sec because after suspend/hibernate the clock should be updated directly, and not + // on next minute change + time_t old_sec = time_clock.tv_sec; ++ ++ // Little hack to wait executed commands in clock_action avoiding zombies ++ waitpid(-1, NULL, WNOHANG); ++ + gettimeofday(&time_clock, 0); + if (time_clock.tv_sec % 60 == 0 || time_clock.tv_sec - old_sec > 60) { + int i; + diff --git a/community/tint2/middle_click_on_clock.patch b/community/tint2/middle_click_on_clock.patch new file mode 100644 index 000000000..800c15c44 --- /dev/null +++ b/community/tint2/middle_click_on_clock.patch @@ -0,0 +1,75 @@ +http://code.google.com/p/tint2/issues/detail?id=430 +Submitted By: David B. Cortarello (Nomius) <dcortarello at gmail dot com> +Date: 18-05-2013 +Initial Package Version: subversion trunk (revision 652) +Description: Implemented middle click mouse button in the clock to execute tasks. +* Implemented middle click mouse button over the clock by accepting the button 2 in the clock_action. +* A new configuration parameter was created called clock_mclick_command, which works in the same way +* clock_lclick_command and clock_rclick_command does. + +Index: src/clock/clock.c +=================================================================== +--- src/clock/clock.c (revision 652) ++++ src/clock/clock.c (working copy) +@@ -39,6 +41,7 @@ + char *time_tooltip_format; + char *time_tooltip_timezone; + char *clock_lclick_command; ++char *clock_mclick_command; + char *clock_rclick_command; + struct timeval time_clock; + PangoFontDescription *time1_font_desc; +@@ -61,6 +64,7 @@ + time_tooltip_format = 0; + time_tooltip_timezone = 0; + clock_lclick_command = 0; ++ clock_mclick_command = 0; + clock_rclick_command = 0; + time1_font_desc = 0; + time2_font_desc = 0; +@@ -77,6 +81,7 @@ + if (time2_timezone) g_free(time2_timezone); + if (time_tooltip_timezone) g_free(time_tooltip_timezone); + if (clock_lclick_command) g_free(clock_lclick_command); ++ if (clock_mclick_command) g_free(clock_mclick_command); + if (clock_rclick_command) g_free(clock_rclick_command); + if (clock_timeout) stop_timeout(clock_timeout); + } +@@ -254,6 +263,9 @@ + case 1: + command = clock_lclick_command; + break; ++ case 2: ++ command = clock_mclick_command; ++ break; + case 3: + command = clock_rclick_command; + break; +Index: src/clock/clock.h +=================================================================== +--- src/clock/clock.h (revision 652) ++++ src/clock/clock.h (working copy) +@@ -33,6 +33,7 @@ + extern PangoFontDescription *time1_font_desc; + extern PangoFontDescription *time2_font_desc; + extern char *clock_lclick_command; ++extern char *clock_mclick_command; + extern char *clock_rclick_command; + extern int clock_enabled; + +Index: src/config.c +=================================================================== +--- src/config.c (revision 652) ++++ src/config.c (working copy) +@@ -396,6 +396,10 @@ + if (strlen(value) > 0) + clock_lclick_command = strdup(value); + } ++ else if (strcmp(key, "clock_mclick_command") == 0) { ++ if (strlen(value) > 0) ++ clock_mclick_command = strdup(value); ++ } + else if (strcmp(key, "clock_rclick_command") == 0) { + if (strlen(value) > 0) + clock_rclick_command = strdup(value); + |