add pavucontrol-qt package
This commit is contained in:
parent
a6154daf64
commit
f7bfb22c13
10
x11-packages/pavucontrol-qt/build.sh
Normal file
10
x11-packages/pavucontrol-qt/build.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
TERMUX_PKG_HOMEPAGE=https://lxqt.github.io
|
||||||
|
TERMUX_PKG_DESCRIPTION="Qt port of volume control of sound server PulseAudio"
|
||||||
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
|
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
|
||||||
|
TERMUX_PKG_VERSION=0.17.0
|
||||||
|
TERMUX_PKG_SRCURL="https://github.com/lxqt/pavucontrol-qt/releases/download/${TERMUX_PKG_VERSION}/pavucontrol-qt-${TERMUX_PKG_VERSION}.tar.xz"
|
||||||
|
TERMUX_PKG_SHA256=6c274cd3a80a699c4b3f4dbf4eccaef3fafdc677c6240e2b45672bafe46da170
|
||||||
|
TERMUX_PKG_DEPENDS="qt5-qtbase, kwindowsystem, glib, liblxqt, pulseaudio"
|
||||||
|
TERMUX_PKG_BUILD_DEPENDS="cmake, lxqt-build-tools, qt5-qtbase-cross-tools, qt5-qttools-cross-tools"
|
||||||
|
|
12
x11-packages/pavucontrol-qt/fix_glib_linking.patch
Normal file
12
x11-packages/pavucontrol-qt/fix_glib_linking.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
glib is not properly linked, changing the variable so it is present
|
||||||
|
--- src/src/CMakeLists.txt 2021-04-13 18:13:27.000000000 +0000
|
||||||
|
+++ src.mod/src/CMakeLists.txt 2021-05-20 14:03:49.449914000 +0000
|
||||||
|
@@ -75,7 +75,7 @@
|
||||||
|
target_link_libraries(pavucontrol-qt
|
||||||
|
Qt5::Widgets
|
||||||
|
${PULSE_LDFLAGS}
|
||||||
|
- ${GLIB_LDFLAGS}
|
||||||
|
+ ${GLIB_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(TARGETS
|
44
x11-packages/pavucontrol-qt/no_pulse_glib.patch
Normal file
44
x11-packages/pavucontrol-qt/no_pulse_glib.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
PulseAudio in Termux doesn't have glib feature.
|
||||||
|
This patch replaces the glib mainloop with the primary basic mainloop.
|
||||||
|
--- src/src/pavucontrol.cc 2021-04-13 18:13:27.000000000 +0000
|
||||||
|
+++ src.mod/src/pavucontrol.cc 2021-05-20 13:56:35.699908000 +0000
|
||||||
|
@@ -25,7 +25,7 @@
|
||||||
|
#define PACKAGE_VERSION "0.1"
|
||||||
|
|
||||||
|
#include <pulse/pulseaudio.h>
|
||||||
|
-#include <pulse/glib-mainloop.h>
|
||||||
|
+#include <pulse/mainloop.h>
|
||||||
|
#include <pulse/ext-stream-restore.h>
|
||||||
|
#include <pulse/ext-device-manager.h>
|
||||||
|
|
||||||
|
@@ -688,9 +688,9 @@
|
||||||
|
if(parser.isSet(maximizeOption))
|
||||||
|
mainWindow->showMaximized();
|
||||||
|
|
||||||
|
- pa_glib_mainloop *m = pa_glib_mainloop_new(g_main_context_default());
|
||||||
|
+ pa_mainloop *m = pa_mainloop_new();
|
||||||
|
g_assert(m);
|
||||||
|
- api = pa_glib_mainloop_get_api(m);
|
||||||
|
+ api = pa_mainloop_get_api(m);
|
||||||
|
g_assert(api);
|
||||||
|
|
||||||
|
connect_to_pulse(mainWindow);
|
||||||
|
@@ -706,7 +706,7 @@
|
||||||
|
|
||||||
|
if (context)
|
||||||
|
pa_context_unref(context);
|
||||||
|
- pa_glib_mainloop_free(m);
|
||||||
|
+ pa_mainloop_free(m);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
--- src/CMakeLists.txt 2021-04-13 18:13:27.000000000 +0000
|
||||||
|
+++ src.mod/CMakeLists.txt 2021-05-20 13:57:15.588923000 +0000
|
||||||
|
@@ -42,7 +42,6 @@
|
||||||
|
pkg_check_modules(
|
||||||
|
PULSE REQUIRED
|
||||||
|
libpulse>=5.0
|
||||||
|
- libpulse-mainloop-glib>=0.9.16
|
||||||
|
)
|
||||||
|
|
||||||
|
add_subdirectory(src)
|
Loading…
Reference in New Issue
Block a user