summaryrefslogtreecommitdiff
path: root/ncmpc
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2024-09-21 22:46:40 -0600
committerAaron Ball <nullspoon@oper.io>2024-09-21 22:47:44 -0600
commit88971a2f054778702dce2738344d777ee985f07f (patch)
treea532720155dd1bb534f1c39eba4552a0fac00db9 /ncmpc
parent774b003eea87d416624dfc410f5b2b99ce952dd6 (diff)
downloadports-88971a2f054778702dce2738344d777ee985f07f.tar.gz
ports-88971a2f054778702dce2738344d777ee985f07f.tar.xz
ncmpc:Add version 0.50
Taken from old upstream package, and upgraded to work with latest utils.
Diffstat (limited to 'ncmpc')
-rw-r--r--ncmpc/.footprint22
-rw-r--r--ncmpc/.md5sum2
-rw-r--r--ncmpc/.signature6
-rw-r--r--ncmpc/Pkgfile43
-rw-r--r--ncmpc/roles.rst7
5 files changed, 80 insertions, 0 deletions
diff --git a/ncmpc/.footprint b/ncmpc/.footprint
new file mode 100644
index 0000000..7d3db47
--- /dev/null
+++ b/ncmpc/.footprint
@@ -0,0 +1,22 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/ncmpc/
+-rw-r--r-- root/root etc/ncmpc/config
+-rw-r--r-- root/root etc/ncmpc/keys
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/ncmpc
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/ncmpc/
+drwxr-xr-x root/root usr/lib/ncmpc/lyrics/
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/20-azlyrics.py
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/25-musixmatch.py
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/30-karaoke_texty.py
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/40-tekstowo.py
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/50-genius.py
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/51-supermusic.py
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/52-zeneszoveg.py
+-rwxr-xr-x root/root usr/lib/ncmpc/lyrics/60-google.py
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/ncmpc.1.gz
diff --git a/ncmpc/.md5sum b/ncmpc/.md5sum
new file mode 100644
index 0000000..404d5b6
--- /dev/null
+++ b/ncmpc/.md5sum
@@ -0,0 +1,2 @@
+f4da0ffec6ce1146b05cc9fb72b8b808 ncmpc-0.50.tar.xz
+005cf892d0219cf838aa9d7837f72e07 roles.rst
diff --git a/ncmpc/.signature b/ncmpc/.signature
new file mode 100644
index 0000000..45c0ea3
--- /dev/null
+++ b/ncmpc/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/nullspoon.pub
+RWThnm0RuVZhZjqv/+znTgEn+loy+ztqHz3hbVqOGO/57ZrBUOTseSbif5nElKxqpMh9gImZMajM1wi06kjr226Qvon5BozCiQA=
+SHA256 (Pkgfile) = c6d5eace06af4f67225da5731dd2da8521b3ef1efc349b8dd30c26604bc4b41c
+SHA256 (.footprint) = c882f6eb29d484df7976b318aee23355ad195a84dc31736c790c2cf8ca5cc03d
+SHA256 (ncmpc-0.50.tar.xz) = 4f860f91a11090a72d580ff68b117e76a2b212be5e46cc4b986a08a1aaf4d597
+SHA256 (roles.rst) = 5c4fb3cc277f7ffe17455add00b4c80edef7f45a87a6ef99d52876af076456cb
diff --git a/ncmpc/Pkgfile b/ncmpc/Pkgfile
new file mode 100644
index 0000000..55e3ce4
--- /dev/null
+++ b/ncmpc/Pkgfile
@@ -0,0 +1,43 @@
+# Description: Ncurse-based MPD console client
+# URL: https://www.musicpd.org/
+# Maintainer: Aaron Ball, nullspoon at oper dot io
+# Depends on: boost ncurses libmpdclient python3-docutils
+# Nice to have: python3-sphinx libpcre2
+
+name=ncmpc
+version=0.50
+release=1
+source=(https://www.musicpd.org/download/ncmpc/0/ncmpc-${version}.tar.xz
+ roles.rst)
+
+nosphinx_process_man() {
+ local doc="${SRC}/${name}-${version}/doc/index.rst"
+ sed -i 's/.. option::/.. topic::/' "${doc}"
+ cat ${SRC}/roles.rst
+ head -n2 "${doc}"
+ printf -- '-------------------\nncmpc Documentation\n-------------------\n\n'
+ tail -n +3 "${doc}"
+}
+
+build() {
+ meson build ${name}-${version} \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -D nls=disabled \
+ -D lyrics_screen=true
+ ninja -C build
+ DESTDIR=${PKG} ninja -C build install
+
+ mkdir -p ${PKG}/etc/ncmpc
+
+ install -m 0644 ${name}-${version}/doc/config.sample ${PKG}/etc/ncmpc/config
+ install -m 0644 ${name}-${version}/doc/keys.sample ${PKG}/etc/ncmpc/keys
+
+ if prt-get isinst python3-docutils; then
+ mkdir -p ${PKG}/usr/share/man/man1
+ nosphinx_process_man | rst2man > ${PKG}/usr/share/man/man1/${name}.1
+ gzip ${PKG}/usr/share/man/man1/${name}.1
+ fi
+
+ rm -rf ${PKG}/usr/share/doc
+}
diff --git a/ncmpc/roles.rst b/ncmpc/roles.rst
new file mode 100644
index 0000000..131be3b
--- /dev/null
+++ b/ncmpc/roles.rst
@@ -0,0 +1,7 @@
+.. role:: command(strong)
+.. role:: option(strong)
+.. role:: file(strong)
+.. role:: envvar(strong)
+.. role:: manpage(strong)
+.. role:: samp(strong)
+

Generated by cgit