[arch-commits] Commit in fluxbox/trunk (PKGBUILD fluxbox.patch)

Eric Bélanger eric at archlinux.org
Mon Jan 19 04:48:52 UTC 2015


    Date: Monday, January 19, 2015 @ 05:48:51
  Author: eric
Revision: 229564

upgpkg: fluxbox 1.3.6-1

Upstream update

Added:
  fluxbox/trunk/fluxbox.patch
Modified:
  fluxbox/trunk/PKGBUILD

---------------+
 PKGBUILD      |   17 +++++++++--------
 fluxbox.patch |   23 +++++++++++++++++++++++
 2 files changed, 32 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-01-19 04:05:07 UTC (rev 229563)
+++ PKGBUILD	2015-01-19 04:48:51 UTC (rev 229564)
@@ -2,23 +2,24 @@
 # Maintainer: Eric Bélanger <eric at archlinux.org>
 
 pkgname=fluxbox
-pkgver=1.3.5
-pkgrel=4
+pkgver=1.3.6
+pkgrel=1
 pkgdesc="A lightweight and highly-configurable window manager"
 arch=('i686' 'x86_64')
 url="http://www.fluxbox.org"
 license=('MIT')
-depends=('libxft' 'libxpm' 'libxinerama' 'libxrandr' 'gcc-libs' 'imlib2' 'fribidi')
+depends=('libxft' 'libxpm' 'libxinerama' 'libxrandr' 'imlib2' 'fribidi')
 optdepends=('xorg-xmessage: for using the fbsetbg and fluxbox-generate_menu utilities')
 options=('!makeflags')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.lzma \
-        fluxbox.desktop)
-sha1sums=('495d82ca428949cc2bc85814898b49cf4624b7cb'
-          'f3f83b8ce84d79c2f8670ef687e0dd89ab0552b8')
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz
+        fluxbox.desktop fluxbox.patch)
+sha1sums=('2bcf7a02394b01652be05f6b6108a1e67a12afb5'
+          'f3f83b8ce84d79c2f8670ef687e0dd89ab0552b8'
+          '2718219744cf0f588ce90074a38317699e720ac0')
 
 prepare() {
   cd ${pkgname}-${pkgver}
-  sed -i 's/@EXEEXT@//g' util/fluxbox-generate_menu.in #share/fluxbox/menu}
+  patch -p1 -i "${srcdir}/fluxbox.patch"
 }
 
 build() {

Added: fluxbox.patch
===================================================================
--- fluxbox.patch	                        (rev 0)
+++ fluxbox.patch	2015-01-19 04:48:51 UTC (rev 229564)
@@ -0,0 +1,23 @@
+diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
+index 611580c..a177f25 100644
+--- a/src/FbTk/TextButton.cc
++++ b/src/FbTk/TextButton.cc
+@@ -143,11 +143,17 @@ void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) {
+     unsigned int textlen = visual.size();
+     unsigned int button_width = width();
+     unsigned int button_height = height();
++    const int max_width = static_cast<int>(button_width) - x_offset -
++        m_left_padding - m_right_padding;
++ 
++    if (max_width <= bevel()) {
++        return;
++    }
+ 
+     translateSize(m_orientation, button_width, button_height);
+ 
+     // horizontal alignment, cut off text if needed
+-    int align_x = FbTk::doAlignment(button_width - x_offset - m_left_padding - m_right_padding,
++    int align_x = FbTk::doAlignment(max_width,
+                                     bevel(), justify(), font(),
+                                     visual.data(), visual.size(),
+                                     textlen); // return new text len



More information about the arch-commits mailing list