Add myMPD scarthgap
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 11 Dec 2025 03:21:36 +0000 (22:21 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 23 Jan 2026 16:44:47 +0000 (11:44 -0500)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
recipes-core/images/include/image-hvmpd-common.inc
recipes-multimedia/musicpd/mympd_git.bb [new file with mode: 0644]

index 2085d6e..d232753 100644 (file)
@@ -21,6 +21,7 @@ IMAGE_INSTALL:append = " \
     mpd \
     mpc \
     ympd \
+    mympd \
     shairport-sync \
 "
 
diff --git a/recipes-multimedia/musicpd/mympd_git.bb b/recipes-multimedia/musicpd/mympd_git.bb
new file mode 100644 (file)
index 0000000..d4a0b7d
--- /dev/null
@@ -0,0 +1,36 @@
+DESCRIPTION = "myMPD"
+SECTION = "multimedia"
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=ad8f1ebd7e8b0de8b26362934346e700"
+
+# libnewt: required for whiptail
+DEPENDS = "openssl lua lua-native libpcre2 libid3tag flac libmpd jq-native gzip libnewt"
+
+PV = "0.0.1"
+SRCBRANCH = "master"
+SRCREV = "${AUTOREV}"
+SRC_URI = "git://github.com/jcorporation/myMPD.git;branch=${SRCBRANCH};protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig cmake systemd
+
+# Remove user version of service. We use system version.
+do_install:append() {
+    rm -rf ${D}${systemd_user_unitdir}
+
+    # Disable http service becuas eof conflict with ympd on port 8080.
+    # myMPD can be launched with: https://<hostname>:8443
+    sed -e '/^\[Service\]/s/$/\nEnvironment=MYMPD_HTTP=false/' \
+        -i ${D}${systemd_system_unitdir}/mympd.service
+}
+
+FILES:${PN} = " \
+    ${bindir}/* \
+"
+
+SYSTEMD_SERVICE:${PN} = "mympd.service"
+
+#ERROR: QA Issue: File /usr/src/debug/mympd/0.0.1/lualibs.c in package hympd-src contains reference to TMPDIR [buildpaths]
+#ERROR: QA Issue: File /usr/src/debug/mympd/0.0.1/embedded_files.c in package hympd-src contains reference to TMPDIR [buildpaths]
+INSANE_SKIP += "buildpaths"