From c0c120ab8fd2dd16d136a249626155cb531ecea0 Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Mon, 20 May 2019 12:39:02 +0300 Subject: xfce4-genmon-plugin --- openbox/PKGBUILD | 2 +- xfce4-genmon-plugin/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++++ xfce4-genmon-plugin/font-fix.patch | 34 ++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 xfce4-genmon-plugin/PKGBUILD create mode 100644 xfce4-genmon-plugin/font-fix.patch diff --git a/openbox/PKGBUILD b/openbox/PKGBUILD index 843dec8..7d19c8d 100644 --- a/openbox/PKGBUILD +++ b/openbox/PKGBUILD @@ -27,7 +27,7 @@ md5sums=('b72794996c6a3ad94634727b95f9d204' 'SKIP' '0a11d7149da210a31ef88f8a9c717711' '7ca3b5244bb092d46f5bcf1e2bdf4a18' - 'SKIP') + 'SKIP') validpgpkeys=(4B71379A9D5263D112A85620A5A4E99C711D3B61) prepare() { diff --git a/xfce4-genmon-plugin/PKGBUILD b/xfce4-genmon-plugin/PKGBUILD new file mode 100644 index 0000000..4f8e8f8 --- /dev/null +++ b/xfce4-genmon-plugin/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Evangelos Foutras +# Contributor: AndyRTR +# Contributor: Tobias Kieslich + +pkgname=xfce4-genmon-plugin +pkgver=4.0.1 +pkgrel=1 +pkgdesc="plugin that monitors customizable programs stdout for the Xfce4 panel" +arch=('x86_64') +license=('LGPL2.1') +url="https://goodies.xfce.org/projects/panel-plugins/xfce4-genmon-plugin" +groups=('xfce4-goodies') +depends=('xfce4-panel') +makedepends=('intltool') +source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2 + font-fix.patch) +sha256sums=('4c6ce37fbe71094548b44862587c2813da991aeaaecff8e572724dbbec83ab86' 'SKIP') + +prepare() { + cd $pkgname-$pkgver + + patch -Np1 -i "$srcdir"/font-fix.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: diff --git a/xfce4-genmon-plugin/font-fix.patch b/xfce4-genmon-plugin/font-fix.patch new file mode 100644 index 0000000..8aaff93 --- /dev/null +++ b/xfce4-genmon-plugin/font-fix.patch @@ -0,0 +1,34 @@ +From 331c77853276b9d9f369899618140c505c34546f Mon Sep 17 00:00:00 2001 +From: ToZ +Date: Sat, 14 Jul 2018 12:29:16 -0400 +Subject: Change font to use pt instead of px to match system font setting + +--- + panel-plugin/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/panel-plugin/main.c b/panel-plugin/main.c +index 0eba91c..8af795e 100644 +--- a/panel-plugin/main.c ++++ b/panel-plugin/main.c +@@ -537,7 +537,7 @@ static int SetMonitorFont (void *p_pvPlugin) + font = pango_font_description_from_string(poConf->acFont); + if (G_LIKELY (font)) + { +- css = g_strdup_printf("label { font-family: %s; font-size: %dpx; font-style: %s; font-weight: %s }", ++ css = g_strdup_printf("label { font-family: %s; font-size: %dpt; font-style: %s; font-weight: %s }", + pango_font_description_get_family (font), + pango_font_description_get_size (font) / PANGO_SCALE, + (pango_font_description_get_style(font) == PANGO_STYLE_ITALIC || +@@ -727,7 +727,7 @@ static void SetLabel (GtkWidget *p_wTF, void *p_pvPlugin) + struct param_t *poConf = &(poPlugin->oConf.oParam); + struct monitor_t *poMonitor = &(poPlugin->oMonitor); + const char *acTitle = gtk_entry_get_text (GTK_ENTRY (p_wTF)); +- ++ + g_free (poConf->acTitle); + poConf->acTitle = g_strdup (acTitle); + gtk_label_set_text (GTK_LABEL (poMonitor->wTitle), poConf->acTitle); +-- +cgit v1.2.1 + -- cgit v1.2.3-70-g09d2