added polybar package (#116)

This commit is contained in:
Tristan Ross 2019-07-10 12:21:56 -07:00 committed by Yaksh Bariya
parent 1deec06ad3
commit 3691d4391c
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://polybar.github.io
TERMUX_PKG_DESCRIPTION="A fast and easy-to-use status bar"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Tristan Ross <spaceboyross@yandex.com>"
TERMUX_PKG_VERSION=3.3.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://github.com/polybar/polybar/releases/download/$TERMUX_PKG_VERSION/polybar-$TERMUX_PKG_VERSION.tar"
TERMUX_PKG_SHA256=b0982a729f99f658d77969fd582d074843a57982b5e7c6b2b6efee5480b2a81c
TERMUX_PKG_DEPENDS="fontconfig, freetype, libandroid-glob, libandroid-shmem, libc++, libcairo-x, libcurl, libxcb, xcb-util-cursor, xcb-util-image, xcb-util-xrm, xcb-util-wm"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
LDFLAGS+=" -landroid-glob -landroid-shmem"
}

View File

@ -0,0 +1,24 @@
diff -uNr polybar/src/ipc.cpp polybar.mod/src/ipc.cpp
--- polybar/src/ipc.cpp 2019-04-03 08:32:20.000000000 +0300
+++ polybar.mod/src/ipc.cpp 2019-07-10 22:14:11.763825428 +0300
@@ -12,7 +12,7 @@
using namespace std;
#ifndef IPC_CHANNEL_PREFIX
-#define IPC_CHANNEL_PREFIX "/tmp/polybar_mqueue."
+#define IPC_CHANNEL_PREFIX "@TERMUX_PREFIX@/tmp/polybar_mqueue."
#endif
void log(const string& msg) {
diff -uNr polybar/src/utils/bspwm.cpp polybar.mod/src/utils/bspwm.cpp
--- polybar/src/utils/bspwm.cpp 2019-04-03 08:32:20.000000000 +0300
+++ polybar.mod/src/utils/bspwm.cpp 2019-07-10 22:14:35.983493128 +0300
@@ -85,7 +85,7 @@
return BSPWM_SOCKET_PATH;
}
- snprintf(sa.sun_path, sizeof(sa.sun_path), "/tmp/bspwm%s_%i_%i-socket", host, dsp, scr);
+ snprintf(sa.sun_path, sizeof(sa.sun_path), "@TERMUX_PREFIX@/tmp/bspwm%s_%i_%i-socket", host, dsp, scr);
free(host);
return sa.sun_path;