Package Details: mp3blaster 3.2.6-2

Git Clone URL: https://aur.archlinux.org/mp3blaster.git (read-only, click to copy)
Package Base: mp3blaster
Description: A console based mp3 and OGG player
Upstream URL: http://mp3blaster.sourceforge.net
Keywords:
Licenses: GPL
Submitter: cirrus
Maintainer: winnie_ua
Last Packager: winnie_ua
Votes: 0
Popularity: 0.000000
First Submitted: 2018-12-02 16:08 (UTC)
Last Updated: 2023-06-07 22:40 (UTC)

Latest Comments

winnie_ua commented on 2023-06-06 19:19 (UTC)

Anybody who need terminal music player, can consider this one https://github.com/tramhao/termusic https://aur.archlinux.org/packages/termusic

But be adwised that it tries to use Emoji in it's TUI, so I guess is not wery friendly to raw frame-buffer terminal. And it has different controls.

winnie_ua commented on 2023-06-06 18:50 (UTC) (edited on 2023-06-06 18:52 (UTC) by winnie_ua)

Following git patch should resolve build issues:

From bd5ba2275f6911b9cf2da8d519076ce21fc8ea70 Mon Sep 17 00:00:00 2001
From: Bogdan Mart 
Date: Tue, 6 Jun 2023 21:47:11 +0300
Subject: [PATCH] Added patch to fix gcc build errors

---
 PKGBUILD       | 13 ++++++++++---
 nmixer-1.patch | 11 +++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)
 create mode 100644 nmixer-1.patch

diff --git a/PKGBUILD b/PKGBUILD
index 34faab3..f819851 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,14 +7,21 @@

 pkgname=mp3blaster
 pkgver=3.2.6
-pkgrel=1
+pkgrel=2
 pkgdesc="A console based mp3 and OGG player"
 arch=('i686' 'x86_64')
 url="http://mp3blaster.sourceforge.net"
 license=('GPL')
 depends=('ncurses' 'libvorbis' 'sdl' 'libsidplay')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/stragulus/mp3blaster/archive/v$pkgver.tar.gz")
-sha256sums=('2b8902a220fee43ee76bd55d5a7f7fd51a3faf8db721a3402b442f1b6e1ef518')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/stragulus/mp3blaster/archive/v$pkgver.tar.gz"
+        nmixer-1.patch)
+sha256sums=('2b8902a220fee43ee76bd55d5a7f7fd51a3faf8db721a3402b442f1b6e1ef518'
+            '716a0d9987779c39a01fddd10fdd93a1b461ffdb9ee01893ea5089ac8ce02a27')
+
+prepare() {
+    cd "$pkgname-$pkgver"
+    patch --input="${srcdir}/nmixer-1.patch" -p1
+}

 build() {
   cd $pkgname-$pkgver
diff --git a/nmixer-1.patch b/nmixer-1.patch
new file mode 100644
index 0000000..1e6c8ac
--- /dev/null
+++ b/nmixer-1.patch
@@ -0,0 +1,11 @@
+--- a/nmixer/nmixer.cc   2017-05-16 01:25:18.000000000 +0300
++++ b/nmixer/nmixer.cc 2023-06-06 14:18:33.536413971 +0300
+@@ -216,7 +216,7 @@
+       mvwprintw(mixwin, my_y + 1, my_x, (char*)empty_scrollbar);
+
+       //draw new bar
+-      mvwprintw(mixwin, my_y - 1, my_x, (char*)source);
++      mvwprintw(mixwin, my_y - 1, my_x, "%s", (char*)source);
+       if (i == currentbar)
+       {
+            mvwchgat(mixwin, my_y - 1, my_x, strlen(source), A_REVERSE,
-- 
2.40.1

please note that nmixer.cc's patch should contain tabs at beginning of lines, not spaces.

winnie_ua commented on 2023-06-06 17:52 (UTC)

Build fails with following error

nmixer.cc:219:26: error: format not a string literal and no format arguments [-Werror=format-security]
  219 |                 mvwprintw(mixwin, my_y - 1, my_x, (char*)source);
      |                 ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~