new package: stoken
This commit is contained in:
parent
3aca178a07
commit
f820729792
12
packages/stoken/build.sh
Normal file
12
packages/stoken/build.sh
Normal file
@ -0,0 +1,12 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/cernekee/stoken
|
||||
TERMUX_PKG_DESCRIPTION="Software Token for Linux/UNIX"
|
||||
TERMUX_PKG_LICENSE="LGPL-2.1"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.92
|
||||
TERMUX_PKG_SRCURL=https://github.com/cernekee/stoken/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=9b9c5e0f09ca14a54454319b64af98a02d0ae1b3eb1122c95e2130736f440cd1
|
||||
TERMUX_PKG_DEPENDS="libnettle, libxml2"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
11
packages/stoken/src-cli.c.patch
Normal file
11
packages/stoken/src-cli.c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/src/cli.c
|
||||
+++ b/src/cli.c
|
||||
@@ -426,7 +426,7 @@
|
||||
int fd;
|
||||
|
||||
snprintf(fname, sizeof(fname), "%s/XXXXXX.png",
|
||||
- getenv("TMPDIR") ? : "/tmp");
|
||||
+ getenv("TMPDIR") ? : "@TERMUX_PREFIX@/tmp");
|
||||
fd = mkstemps(fname, 4);
|
||||
if (fd < 0)
|
||||
die("can't create temp file '%s'\n", fname);
|
Loading…
Reference in New Issue
Block a user