termux-packages/packages/blogc/termux-prefix.patch
Rafael Martins b88cca5b0b blogc: initial packaging (#832)
blogc is a blogging tool written in C, without any external
dependencies. It is released under BSD license, and targeted to
developers.

The package is based on a snapshot version. Version 0.13.0 should
be release soon, but the snapshot is stable and useful enough.

For more info, see: https://blogc.rgm.io/
2017-03-14 03:44:13 +01:00

27 lines
934 B
Diff

diff --git a/src/blogc-make/atom.c b/src/blogc-make/atom.c
index d5f5387..5154bb9 100644
--- a/src/blogc-make/atom.c
+++ b/src/blogc-make/atom.c
@@ -55,7 +55,7 @@ bm_atom_deploy(bm_settings_t *settings, bc_error_t **err)
return NULL;
// this is not really portable
- char fname[] = "/tmp/blogc-make_XXXXXX";
+ char fname[] = "@TERMUX_PREFIX@/tmp/blogc-make_XXXXXX";
int fd;
if (-1 == (fd = mkstemp(fname))) {
*err = bc_error_new_printf(BLOGC_MAKE_ERROR_ATOM,
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index db20cae..86e8d25 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -116,7 +116,7 @@ bm_exec_command(const char *cmd, const char *input, char **output,
dup2(fd_err[1], STDERR_FILENO);
char *const argv[] = {
- "/bin/sh",
+ "@TERMUX_PREFIX@/bin/sh",
"-c",
(char*) cmd,
NULL,