diff --git a/packages/pounce/bounce.h.patch b/packages/pounce/bounce.h.patch new file mode 100644 index 000000000..1b1716006 --- /dev/null +++ b/packages/pounce/bounce.h.patch @@ -0,0 +1,17 @@ +--- a/bounce.h ++++ b/bounce.h +@@ -34,6 +34,14 @@ + #include + #include + ++#ifdef __ANDROID__ ++#include ++ ++static void *(*volatile explicit_memset)(void *, int, size_t) = memset; ++#undef explicit_bzero ++#define explicit_bzero(s, n) explicit_memset(s, 0, n) ++#endif ++ + #ifndef OPENSSL_BIN + #define OPENSSL_BIN "openssl" + #endif diff --git a/packages/pounce/build.sh b/packages/pounce/build.sh new file mode 100644 index 000000000..82518179b --- /dev/null +++ b/packages/pounce/build.sh @@ -0,0 +1,13 @@ +TERMUX_PKG_HOMEPAGE=https://git.causal.agency/pounce +TERMUX_PKG_DESCRIPTION="A multi-client, TLS-only IRC bouncer" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=3.0 +TERMUX_PKG_SRCURL=https://git.causal.agency/pounce/snapshot/pounce-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=f776f7f170493697a97923e7dce9597dff5577fd40ba756e9a1bcfab17199df0 +TERMUX_PKG_DEPENDS="libcrypt, libretls" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--mandir=$TERMUX_PREFIX/share/man +" +TERMUX_PKG_EXTRA_MAKE_ARGS="all" diff --git a/packages/pounce/pounce.1.patch b/packages/pounce/pounce.1.patch new file mode 100644 index 000000000..357556263 --- /dev/null +++ b/packages/pounce/pounce.1.patch @@ -0,0 +1,11 @@ +--- a/pounce.1 ++++ b/pounce.1 +@@ -627,7 +627,7 @@ + followed by the colon-separated list of paths + .Ev $XDG_CONFIG_DIRS , + usually +-.Pa /etc/xdg . ++.Pa @TERMUX_PREFIX@/etc/xdg . + .It Pa ~/.config/pounce + The most likely location of configuration files. + . diff --git a/packages/pounce/xdg.c.patch b/packages/pounce/xdg.c.patch new file mode 100644 index 000000000..896963e80 --- /dev/null +++ b/packages/pounce/xdg.c.patch @@ -0,0 +1,19 @@ +--- a/xdg.c ++++ b/xdg.c +@@ -49,14 +49,14 @@ + .envHome = "XDG_CONFIG_HOME", + .envDirs = "XDG_CONFIG_DIRS", + .defHome = ".config", +- .defDirs = "/etc/xdg", ++ .defDirs = "@TERMUX_PREFIX@/etc/xdg", + }; + + static const struct Base Data = { + .envHome = "XDG_DATA_HOME", + .envDirs = "XDG_DATA_DIRS", + .defHome = ".local/share", +- .defDirs = "/usr/local/share:/usr/share", ++ .defDirs = "@TERMUX_PREFIX@/local/share:@TERMUX_PREFIX@/share", + }; + + static char *basePath(