[arch-commits] Commit in ncmpc/repos/extra-x86_64 (3 files)

Gaëtan Bisson bisson at archlinux.org
Mon Jun 18 20:47:01 UTC 2018


    Date: Monday, June 18, 2018 @ 20:47:01
  Author: bisson
Revision: 327169

archrelease: copy trunk to extra-x86_64

Added:
  ncmpc/repos/extra-x86_64/PKGBUILD
    (from rev 327168, ncmpc/trunk/PKGBUILD)
  ncmpc/repos/extra-x86_64/progressbar.patch
    (from rev 327168, ncmpc/trunk/progressbar.patch)
Deleted:
  ncmpc/repos/extra-x86_64/PKGBUILD

-------------------+
 PKGBUILD          |   79 ++++++++++++++++++++++++++--------------------------
 progressbar.patch |   36 +++++++++++++++++++++++
 2 files changed, 77 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-18 20:46:39 UTC (rev 327168)
+++ PKGBUILD	2018-06-18 20:47:01 UTC (rev 327169)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer: Gaetan Bisson <bisson at archlinux.org>
-# Contributor: Angel Velasquez <angvp at archlinux.org> 
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: damir <damir at archlinux.org>
-# Contributor: Daniel Bainton <dpb [at] backarrow.org>
-
-pkgname=ncmpc
-pkgver=0.30
-pkgrel=1
-pkgdesc='Fully featured MPD client using ncurses'
-url='https://www.musicpd.org/clients/ncmpc/'
-arch=('x86_64')
-license=('GPL')
-depends=('ncurses' 'glib2' 'libmpdclient')
-optdepends=('python2: to enable lyrics plugin'
-            'ruby: to enable lyrics plugin')
-makedepends=('meson' 'python-sphinx')
-validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
-source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
-sha256sums=('e3fe0cb58b8a77f63fb1645c2f974b334f1614efdc834ec698ee7d861f1b12a3'
-            'SKIP')
-
-prepare() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	sed "s/curses == 'ncursesw'/false/g" -i meson.build
-}
-
-build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	arch-meson . build -Dlyrics_screen=true
-	ninja -C build
-}
-
-package() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	DESTDIR="${pkgdir}" ninja -C build install
-}

Copied: ncmpc/repos/extra-x86_64/PKGBUILD (from rev 327168, ncmpc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-06-18 20:47:01 UTC (rev 327169)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org> 
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Daniel Bainton <dpb [at] backarrow.org>
+
+pkgname=ncmpc
+pkgver=0.30
+pkgrel=2
+pkgdesc='Fully featured MPD client using ncurses'
+url='https://www.musicpd.org/clients/ncmpc/'
+arch=('x86_64')
+license=('GPL')
+depends=('ncurses' 'glib2' 'libmpdclient')
+optdepends=('python2: to enable lyrics plugin'
+            'ruby: to enable lyrics plugin')
+makedepends=('meson' 'python-sphinx')
+validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
+source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig}
+        'progressbar.patch')
+sha256sums=('e3fe0cb58b8a77f63fb1645c2f974b334f1614efdc834ec698ee7d861f1b12a3'
+            'SKIP'
+            '5ccc53da4f8e6a3fa2a2f7abad878bae846737a89cbde550170b25fa46d0292e')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	sed "s/curses == 'ncursesw'/false/g" -i meson.build
+	patch -p1 -i ../progressbar.patch
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	arch-meson . build -Dlyrics_screen=true
+	ninja -C build
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	DESTDIR="${pkgdir}" ninja -C build install
+}

Copied: ncmpc/repos/extra-x86_64/progressbar.patch (from rev 327168, ncmpc/trunk/progressbar.patch)
===================================================================
--- progressbar.patch	                        (rev 0)
+++ progressbar.patch	2018-06-18 20:47:01 UTC (rev 327169)
@@ -0,0 +1,36 @@
+From fa73e3faa29af8638d2557c6c808bda9dc67afc2 Mon Sep 17 00:00:00 2001
+From: Aleksi Blinnikka <aleksi.blinnikka at gmail.com>
+Date: Tue, 10 Apr 2018 02:33:30 +0300
+Subject: [PATCH] Fix blank progressbar when colors are not in use
+
+When moving wbkgd() call in 9c22a95 it was not conditional like it was
+for others (commits 7946611 and 6b337bc), which caused progress bar to
+not show.
+---
+ src/ProgressBar.cxx | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/ProgressBar.cxx b/src/ProgressBar.cxx
+index 7ddc72f..02782db 100644
+--- a/src/ProgressBar.cxx
++++ b/src/ProgressBar.cxx
+@@ -19,6 +19,7 @@
+ 
+ #include "ProgressBar.hxx"
+ #include "colors.hxx"
++#include "options.hxx"
+ 
+ #include <assert.h>
+ 
+@@ -26,7 +27,10 @@ ProgressBar::ProgressBar(Point p, unsigned _width)
+ 	:window(p, {_width, 1u})
+ {
+ 	leaveok(window.w, true);
+-	wbkgd(window.w, COLOR_PAIR(COLOR_PROGRESSBAR));
++#ifdef ENABLE_COLORS
++	if (options.enable_colors)
++		wbkgd(window.w, COLOR_PAIR(COLOR_PROGRESSBAR));
++#endif
+ }
+ 
+ void



More information about the arch-commits mailing list