Hello,
I've packaged the nncmpp mpd client (https://git.janouch.name/p/nncmpp).
This is a simple command-line and X11 MPD client written in C, took me a
while to package it as the upstream had split the code into the main
program and two separate libraries - as they now kindly responded to my
request and bundle it all together I can finally package it in a simple
manner.
I've attached a patch to the PKGBUILD.

Note: Initially I was somewhat hesitant about the situation with the
libraries as one of them isn't tagged. I've since spoken to the
developer behind the project and it was clarified to me that the
un-tagged is tightly and closely developed to nncmpp and as such there
shouldn't be an issue.
In any case, the full tarballs now provided should also include
compatible versions.
There might still be an argument down the road of splitting the tagged
library in use (termo) again developed by the same developer IF we do
add any other piece of software that uses it. But for now this will
work well and reduce complexity. Additionally: that argument is
somewhat weak considering that it is a headers-only library.

Motivation:
Currently other than mpc (extremely limited/simplistic), and ncmpc
(overly complex, much larger binary) there are no command-line MPD
clients in Parabola.
Moreover, the only graphical client is xfmpc. nncmpp adds options for
both while being much lighter than either ncmpc or xfmpc.
This does mean though that with the loss of Cantata there is currently
no Wayland-native graphical client - but that is an issue for a
different day.

-- 
Kind Regards,
Wael Karram.
From 085f1b2562fbf13e2bbe03c351e36a0e3c68a777 Mon Sep 17 00:00:00 2001
From: wael <w...@waelk.tech>
Date: Wed, 24 Jul 2024 08:36:44 +0300
Subject: [PATCH] Add nncmpp, a command-line based MPD client similar to
 Cantata in functionality.

---
 pcr/nncmpp/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 pcr/nncmpp/PKGBUILD

diff --git a/pcr/nncmpp/PKGBUILD b/pcr/nncmpp/PKGBUILD
new file mode 100644
index 000000000..86c2247a1
--- /dev/null
+++ b/pcr/nncmpp/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer (AUR): Přemysl Eric Janouch <p...@janouch.name>
+# Maintainer: Wael Karram <w...@waelk.tech>
+
+# Parabola Changes and Rationale:
+# Build from tarball - works now that upstream bundles everything together.
+# Add armv7h target.
+
+pkgname=nncmpp
+pkgver=2.1.1
+pkgrel=1
+pkgdesc="MPD client, control and stream"
+arch=('i686' 'x86_64')
+arch+=('armv7h')
+license=('custom:0BSD')
+url="https://git.janouch.name/p/nncmpp";
+options=(zipman)
+makedepends=('cmake' 'pkgconf' 'librsvg' 'git')
+depends=('ncurses' 'libunistring' 'curl')
+optdepends=(
+	'fftw: spectrum visualiser'
+	'libpulse: direct volume control'
+	'libxft: X11 user interface'
+	'libpng: X11 user interface')
+source=("https://git.janouch.name/p/nncmpp/releases/download/v${pkgver}/nncmpp-${pkgver}.tar.zst";)
+sha256sums=('fb41b1b477e547d87763dbe1b91f99ed23bfa0cf2d993a982be6b8a526ec94a4')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  cmake "$srcdir/$pkgname-$pkgver" -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make install DESTDIR=$pkgdir
+}
-- 
2.45.2

Attachment: pgpM6GQ1Q3bb0.pgp
Description: OpenPGP digital signature

_______________________________________________
Dev mailing list
Dev@lists.parabola.nu
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to