[arch-commits] Commit in fbpanel/repos (6 files)
Sergej Pupykin
spupykin at archlinux.org
Mon Dec 21 19:09:44 UTC 2015
Date: Monday, December 21, 2015 @ 20:09:43
Author: spupykin
Revision: 154046
archrelease: copy trunk to community-i686, community-x86_64
Added:
fbpanel/repos/community-i686/PKGBUILD
(from rev 154044, fbpanel/trunk/PKGBUILD)
fbpanel/repos/community-x86_64/PKGBUILD
(from rev 154045, fbpanel/trunk/PKGBUILD)
Deleted:
fbpanel/repos/community-i686/PKGBUILD
fbpanel/repos/community-i686/battery_fix.patch
fbpanel/repos/community-x86_64/PKGBUILD
fbpanel/repos/community-x86_64/battery_fix.patch
------------------------------------+
/PKGBUILD | 66 +++++++++++++++++++
community-i686/PKGBUILD | 38 -----------
community-i686/battery_fix.patch | 119 -----------------------------------
community-x86_64/PKGBUILD | 38 -----------
community-x86_64/battery_fix.patch | 119 -----------------------------------
5 files changed, 66 insertions(+), 314 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2015-12-21 19:09:37 UTC (rev 154045)
+++ community-i686/PKGBUILD 2015-12-21 19:09:43 UTC (rev 154046)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Jeff Mickey <jeff at archlinux.org>
-# Contributor: Torin Daniel <torindan at gmail.com>
-# Contributor: Diep Pham Van <imeo at favadi.com>
-
-pkgname=fbpanel
-pkgver=6.1
-pkgrel=6
-pkgdesc="NetWM compliant desktop panel"
-arch=('i686' 'x86_64')
-url="http://fbpanel.sourceforge.net/"
-depends=('gtk2')
-license=('GPL')
-source=("http://downloads.sourceforge.net/fbpanel/fbpanel-${pkgver}.tbz2"
- "taskbar_unicode.patch::https://bugs.archlinux.org/task/37639?getfile=11189"
- "battery_fix.patch")
-md5sums=('80ca0c64195b30587cfcb8c2cd9887a0'
- '0af51e8f0391ea9b734a57a9880b57e5'
- 'dc1db8eee1be899725f350eb36793ea4')
-
-prepare() {
- cd "$srcdir/$pkgname-$pkgver"
- patch -p1 <$srcdir/battery_fix.patch
- patch -p1 <$srcdir/taskbar_unicode.patch
-}
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr --libexecdir=/usr/lib
- echo "LDFLAGSX += -lX11 -lm" >>config.mk
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir/" install
-}
Copied: fbpanel/repos/community-i686/PKGBUILD (from rev 154044, fbpanel/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-12-21 19:09:43 UTC (rev 154046)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Torin Daniel <torindan at gmail.com>
+# Contributor: Diep Pham Van <imeo at favadi.com>
+
+pkgname=fbpanel
+pkgver=7.0
+pkgrel=1
+pkgdesc="NetWM compliant desktop panel"
+arch=('i686' 'x86_64')
+url="https://github.com/aanatoly/fbpanel"
+depends=('gtk2')
+makedepends=('python2')
+license=('GPL')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/aanatoly/fbpanel/archive/$pkgver.tar.gz")
+md5sums=('8a15ac4e0f23a72b9d6be5151df712e5')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's|python|python2|' configure .config/{repl.py,help,tar.py}
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --libexecdir /usr/lib/fbpanel --prefix /usr --mandir /usr/share/man
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
Deleted: community-i686/battery_fix.patch
===================================================================
--- community-i686/battery_fix.patch 2015-12-21 19:09:37 UTC (rev 154045)
+++ community-i686/battery_fix.patch 2015-12-21 19:09:43 UTC (rev 154046)
@@ -1,119 +0,0 @@
-*** fbpanel-6.1/plugins/battery/os_linux.c~ 2010-04-08 12:35:26.000000000 +0200
---- fbpanel-6.1/plugins/battery/os_linux.c 2013-07-09 13:13:50.958994816 +0200
-***************
-*** 1,5 ****
---- 1,6 ----
-
- #include <string.h>
-+ #include <stdlib.h>
- #include <ctype.h>
-
- #define LEN 100
-***************
-*** 120,129 ****
- }
-
- static gboolean
- battery_update_os_sys(battery_priv *c)
- {
- ENTER;
-! RET(FALSE);
- }
-
- static gboolean
---- 121,215 ----
- }
-
- static gboolean
-+ read_sys(battery_priv *c, GString *path)
-+ {
-+ int len, dcap, rcap;
-+ gchar *buf;
-+ gboolean ret, exist, charging;
-+
-+ ENTER;
-+ len = path->len;
-+
-+ g_string_append(path, "/present");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ exist = atoi(buf);
-+ g_free(buf);
-+ if (!exist)
-+ RET(FALSE);
-+
-+ g_string_append(path, "/charge_full_design");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ dcap = atoi(buf);
-+ g_free(buf);
-+ if (dcap <= 0)
-+ RET(FALSE);
-+
-+ g_string_append(path, "/charge_now");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ rcap = atoi(buf);
-+ g_free(buf);
-+ if (rcap <= 0)
-+ RET(FALSE);
-+
-+ g_string_append(path, "/current_now");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ charging = (atoi(buf) <= 0);
-+ g_free(buf);
-+
-+ c->exist = exist;
-+ c->charging = charging;
-+ c->level = (int) ((gfloat) rcap * 100 / (gfloat) dcap);
-+ RET(TRUE);
-+ }
-+
-+ static gboolean
- battery_update_os_sys(battery_priv *c)
- {
-+ GString *path;
-+ int len;
-+ GDir *dir;
-+ gboolean ret = FALSE;
-+ const gchar *file;
-+
- ENTER;
-! c->exist = FALSE;
-! path = g_string_sized_new(200);
-! g_string_append(path, "/sys/class/power_supply");
-! len = path->len;
-! if (!(dir = g_dir_open(path->str, 0, NULL))) {
-! DBG("can't open dir %s\n", path->str);
-! goto out;
-! }
-! while (!ret && (file = g_dir_read_name(dir))) {
-! g_string_append(path, "/");
-! g_string_append(path, file);
-! DBG("testing %s\n", path->str);
-! ret = g_file_test(path->str, G_FILE_TEST_IS_DIR);
-! if (ret)
-! ret = read_sys(c, path);
-! g_string_truncate(path, len);
-! }
-! g_dir_close(dir);
-!
-! out:
-! g_string_free(path, TRUE);
-! RET(ret);
- }
-
- static gboolean
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2015-12-21 19:09:37 UTC (rev 154045)
+++ community-x86_64/PKGBUILD 2015-12-21 19:09:43 UTC (rev 154046)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Jeff Mickey <jeff at archlinux.org>
-# Contributor: Torin Daniel <torindan at gmail.com>
-# Contributor: Diep Pham Van <imeo at favadi.com>
-
-pkgname=fbpanel
-pkgver=6.1
-pkgrel=6
-pkgdesc="NetWM compliant desktop panel"
-arch=('i686' 'x86_64')
-url="http://fbpanel.sourceforge.net/"
-depends=('gtk2')
-license=('GPL')
-source=("http://downloads.sourceforge.net/fbpanel/fbpanel-${pkgver}.tbz2"
- "taskbar_unicode.patch::https://bugs.archlinux.org/task/37639?getfile=11189"
- "battery_fix.patch")
-md5sums=('80ca0c64195b30587cfcb8c2cd9887a0'
- '0af51e8f0391ea9b734a57a9880b57e5'
- 'dc1db8eee1be899725f350eb36793ea4')
-
-prepare() {
- cd "$srcdir/$pkgname-$pkgver"
- patch -p1 <$srcdir/battery_fix.patch
- patch -p1 <$srcdir/taskbar_unicode.patch
-}
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr --libexecdir=/usr/lib
- echo "LDFLAGSX += -lX11 -lm" >>config.mk
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir/" install
-}
Copied: fbpanel/repos/community-x86_64/PKGBUILD (from rev 154045, fbpanel/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-12-21 19:09:43 UTC (rev 154046)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jeff Mickey <jeff at archlinux.org>
+# Contributor: Torin Daniel <torindan at gmail.com>
+# Contributor: Diep Pham Van <imeo at favadi.com>
+
+pkgname=fbpanel
+pkgver=7.0
+pkgrel=1
+pkgdesc="NetWM compliant desktop panel"
+arch=('i686' 'x86_64')
+url="https://github.com/aanatoly/fbpanel"
+depends=('gtk2')
+makedepends=('python2')
+license=('GPL')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/aanatoly/fbpanel/archive/$pkgver.tar.gz")
+md5sums=('8a15ac4e0f23a72b9d6be5151df712e5')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's|python|python2|' configure .config/{repl.py,help,tar.py}
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --libexecdir /usr/lib/fbpanel --prefix /usr --mandir /usr/share/man
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
Deleted: community-x86_64/battery_fix.patch
===================================================================
--- community-x86_64/battery_fix.patch 2015-12-21 19:09:37 UTC (rev 154045)
+++ community-x86_64/battery_fix.patch 2015-12-21 19:09:43 UTC (rev 154046)
@@ -1,119 +0,0 @@
-*** fbpanel-6.1/plugins/battery/os_linux.c~ 2010-04-08 12:35:26.000000000 +0200
---- fbpanel-6.1/plugins/battery/os_linux.c 2013-07-09 13:13:50.958994816 +0200
-***************
-*** 1,5 ****
---- 1,6 ----
-
- #include <string.h>
-+ #include <stdlib.h>
- #include <ctype.h>
-
- #define LEN 100
-***************
-*** 120,129 ****
- }
-
- static gboolean
- battery_update_os_sys(battery_priv *c)
- {
- ENTER;
-! RET(FALSE);
- }
-
- static gboolean
---- 121,215 ----
- }
-
- static gboolean
-+ read_sys(battery_priv *c, GString *path)
-+ {
-+ int len, dcap, rcap;
-+ gchar *buf;
-+ gboolean ret, exist, charging;
-+
-+ ENTER;
-+ len = path->len;
-+
-+ g_string_append(path, "/present");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ exist = atoi(buf);
-+ g_free(buf);
-+ if (!exist)
-+ RET(FALSE);
-+
-+ g_string_append(path, "/charge_full_design");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ dcap = atoi(buf);
-+ g_free(buf);
-+ if (dcap <= 0)
-+ RET(FALSE);
-+
-+ g_string_append(path, "/charge_now");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ rcap = atoi(buf);
-+ g_free(buf);
-+ if (rcap <= 0)
-+ RET(FALSE);
-+
-+ g_string_append(path, "/current_now");
-+ ret = g_file_get_contents(path->str, &buf, 0, NULL);
-+ DBG("reading %s %s\n", path->str, ret ? "ok" : "fail");
-+ g_string_truncate(path, len);
-+ if (!ret)
-+ RET(FALSE);
-+ charging = (atoi(buf) <= 0);
-+ g_free(buf);
-+
-+ c->exist = exist;
-+ c->charging = charging;
-+ c->level = (int) ((gfloat) rcap * 100 / (gfloat) dcap);
-+ RET(TRUE);
-+ }
-+
-+ static gboolean
- battery_update_os_sys(battery_priv *c)
- {
-+ GString *path;
-+ int len;
-+ GDir *dir;
-+ gboolean ret = FALSE;
-+ const gchar *file;
-+
- ENTER;
-! c->exist = FALSE;
-! path = g_string_sized_new(200);
-! g_string_append(path, "/sys/class/power_supply");
-! len = path->len;
-! if (!(dir = g_dir_open(path->str, 0, NULL))) {
-! DBG("can't open dir %s\n", path->str);
-! goto out;
-! }
-! while (!ret && (file = g_dir_read_name(dir))) {
-! g_string_append(path, "/");
-! g_string_append(path, file);
-! DBG("testing %s\n", path->str);
-! ret = g_file_test(path->str, G_FILE_TEST_IS_DIR);
-! if (ret)
-! ret = read_sys(c, path);
-! g_string_truncate(path, len);
-! }
-! g_dir_close(dir);
-!
-! out:
-! g_string_free(path, TRUE);
-! RET(ret);
- }
-
- static gboolean
More information about the arch-commits
mailing list