* [PR PATCH] musikcube: update to 0.99.4
@ 2023-01-28 14:08 subnut
2023-02-16 2:52 ` [PR PATCH] [Merged]: " classabbyamp
0 siblings, 1 reply; 2+ messages in thread
From: subnut @ 2023-01-28 14:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]
There is a new pull request by subnut against master on the void-packages repository
https://github.com/subnut/void-packages musikcube
https://github.com/void-linux/void-packages/pull/41915
musikcube: update to 0.99.4
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/41915.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-musikcube-41915.patch --]
[-- Type: text/x-diff, Size: 7252 bytes --]
From 8736bde34469e9e0716a9d00ca67b6529bab3849 Mon Sep 17 00:00:00 2001
From: Subhaditya Nath <sn03.general@gmail.com>
Date: Sat, 28 Jan 2023 19:36:46 +0530
Subject: [PATCH] musikcube: update to 0.99.4
---
srcpkgs/musikcube-alsa | 1 +
srcpkgs/musikcube-gme | 1 +
srcpkgs/musikcube-portaudio | 1 +
.../patches/fix-install-locations.patch | 25 ++++++++---
srcpkgs/musikcube/patches/ppc-musl.patch | 13 ------
srcpkgs/musikcube/template | 42 +++++++++++++++----
6 files changed, 55 insertions(+), 28 deletions(-)
create mode 120000 srcpkgs/musikcube-alsa
create mode 120000 srcpkgs/musikcube-gme
create mode 120000 srcpkgs/musikcube-portaudio
delete mode 100644 srcpkgs/musikcube/patches/ppc-musl.patch
diff --git a/srcpkgs/musikcube-alsa b/srcpkgs/musikcube-alsa
new file mode 120000
index 000000000000..b3cc8e74bf48
--- /dev/null
+++ b/srcpkgs/musikcube-alsa
@@ -0,0 +1 @@
+musikcube
\ No newline at end of file
diff --git a/srcpkgs/musikcube-gme b/srcpkgs/musikcube-gme
new file mode 120000
index 000000000000..b3cc8e74bf48
--- /dev/null
+++ b/srcpkgs/musikcube-gme
@@ -0,0 +1 @@
+musikcube
\ No newline at end of file
diff --git a/srcpkgs/musikcube-portaudio b/srcpkgs/musikcube-portaudio
new file mode 120000
index 000000000000..b3cc8e74bf48
--- /dev/null
+++ b/srcpkgs/musikcube-portaudio
@@ -0,0 +1 @@
+musikcube
\ No newline at end of file
diff --git a/srcpkgs/musikcube/patches/fix-install-locations.patch b/srcpkgs/musikcube/patches/fix-install-locations.patch
index 590f27bf1a7d..eaa012dbe128 100644
--- a/srcpkgs/musikcube/patches/fix-install-locations.patch
+++ b/srcpkgs/musikcube/patches/fix-install-locations.patch
@@ -36,7 +36,7 @@ index 62d3c003..01ef58ac 100644
DESTINATION bin/
PERMISSIONS
OWNER_EXECUTE OWNER_READ OWNER_WRITE
-@@ -66,14 +58,6 @@ install(
+@@ -58,14 +50,6 @@ install(
# executable and shell script for daemon
install(
FILES bin/musikcubed
@@ -54,8 +54,8 @@ index 62d3c003..01ef58ac 100644
diff --git a/src/musikcore/support/Common.cpp b/src/musikcore/support/Common.cpp
index 31703117..53aa8a88 100644
--- a/src/musikcore/support/Common.cpp
-+++ b/src/musikcore/support/Common.cpp
-@@ -82,65 +82,11 @@ static inline void silentDelete(const std::string fn) {
++++ a/src/musikcore/support/Common.cpp
+@@ -87,78 +87,11 @@
namespace musik { namespace core {
std::string GetPluginDirectory() {
@@ -105,15 +105,28 @@ index 31703117..53aa8a88 100644
- argv = new char*[len];
- if (sysctl(mib, 4, argv, &len, nullptr, 0) < 0) abort();
-
-- boost::filesystem::path command = boost::filesystem::system_complete(argv[0]);
-- realpath(command.c_str(), pathbuf);
+- fs::path command = fs::absolute(fs::path(fs::u8path(argv[0])));
+- realpath(command.u8string().c_str(), pathbuf);
- delete[] argv;
+- #elif defined __HAIKU__
+- image_info ii;
+- int32 c = 0;
+- while (get_next_image_info(0, &c, &ii) == B_OK) {
+- if (ii.type == B_APP_IMAGE) {
+- if (strlen(ii.name)) {
+- std::string fn(ii.name);
+- result = fs::u8path(fn).u8string();
+- }
+- }
+- }
- #else
- std::string pathToProc = u8fmt("/proc/%d/exe", (int) getpid());
- readlink(pathToProc.c_str(), pathbuf, PATH_MAX);
- #endif
-
-- result.assign(pathbuf);
+- if (!result.size() && strlen(pathbuf)) {
+- result.assign(pathbuf);
+- }
- size_t last = result.find_last_of("/");
- result = result.substr(0, last); /* remove filename component */
- #endif
diff --git a/srcpkgs/musikcube/patches/ppc-musl.patch b/srcpkgs/musikcube/patches/ppc-musl.patch
deleted file mode 100644
index fc5d21c7a976..000000000000
--- a/srcpkgs/musikcube/patches/ppc-musl.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Taken from libgme patches.
-
---- a/src/plugins/gmedecoder/gme/blargg_endian.h
-+++ b/src/plugins/gmedecoder/gme/blargg_endian.h
-@@ -36,7 +36,7 @@
- #endif
-
- #if defined (MSB_FIRST) || defined (__BIG_ENDIAN__) || defined (WORDS_BIGENDIAN) || \
-- defined (__sparc__) || BLARGG_CPU_POWERPC || \
-+ defined (__sparc__) || \
- (defined (BIG_ENDIAN) && BIG_ENDIAN+0 != 4321)
- #define BLARGG_BIG_ENDIAN 1
- #elif !defined (__mips__)
diff --git a/srcpkgs/musikcube/template b/srcpkgs/musikcube/template
index 8157816c8768..4b7930041126 100644
--- a/srcpkgs/musikcube/template
+++ b/srcpkgs/musikcube/template
@@ -1,23 +1,23 @@
# Template file for 'musikcube'
pkgname=musikcube
-version=0.98.0
-revision=3
+version=0.99.4
+revision=1
build_style=cmake
make_cmd=make
-configure_args="-DNO_NCURSESW=1 -DENABLE_BUNDLED_TAGLIB=false"
+configure_args="-DNO_NCURSESW=1"
hostmakedepends="pkg-config"
-makedepends="boost-devel libogg-devel libmicrohttpd-devel ffmpeg-devel
+makedepends="libgme-devel libogg-devel libmicrohttpd-devel ffmpeg-devel
openssl-devel pulseaudio-devel lame-devel zlib-devel alsa-lib-devel
libvorbis-devel libcurl-devel ncurses-devel libev-devel taglib-devel
sndio-devel pipewire-devel ncurses-libtinfo-devel libopenmpt-devel
- $(vopt_if elogind elogind-devel)"
+ portaudio-devel asio $(vopt_if elogind elogind-devel)"
short_desc="Terminal-based music player in c++"
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
license="BSD-3-Clause"
homepage="https://musikcube.com/"
changelog="https://raw.githubusercontent.com/clangen/musikcube/master/CHANGELOG.txt"
distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
-checksum=a4ae9d6d0fa5ce99de2e7bbc1de75cc8638704a2284b38a51178e23bbe55499c
+checksum=dd8e74c8c8460250c0da325941db2df0f7dcca77f2c68a0295ab21e81f8dd8a4
build_options="elogind"
desc_option_elogind="Support MPRIS interface via elogind"
build_options_default="elogind"
@@ -40,11 +40,11 @@ musikcube-devel_package() {
}
}
-musikcube-sndio_package() {
+musikcube-alsa_package() {
depends="${sourcepkg}>=${version}_${revision}"
- short_desc+=" - sndio output plugin"
+ short_desc+=" - alsa output plugin"
pkg_install() {
- vmove usr/lib/musikcube/plugins/libsndioout.so
+ vmove usr/lib/musikcube/plugins/libalsaout.so
}
}
@@ -56,6 +56,30 @@ musikcube-pipewire_package() {
}
}
+musikcube-portaudio_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - portaudio output plugin"
+ pkg_install() {
+ vmove usr/lib/musikcube/plugins/libportaudioout.so
+ }
+}
+
+musikcube-sndio_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - sndio output plugin"
+ pkg_install() {
+ vmove usr/lib/musikcube/plugins/libsndioout.so
+ }
+}
+
+musikcube-gme_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - gme decoder plugin"
+ pkg_install() {
+ vmove usr/lib/musikcube/plugins/libgmedecoder.so
+ }
+}
+
musikcube-openmpt_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - openmpt decoder plugin"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: musikcube: update to 0.99.4
2023-01-28 14:08 [PR PATCH] musikcube: update to 0.99.4 subnut
@ 2023-02-16 2:52 ` classabbyamp
0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2023-02-16 2:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
There's a merged pull request on the void-packages repository
musikcube: update to 0.99.4
https://github.com/void-linux/void-packages/pull/41915
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-16 2:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-28 14:08 [PR PATCH] musikcube: update to 0.99.4 subnut
2023-02-16 2:52 ` [PR PATCH] [Merged]: " classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).