new package: stoken

This commit is contained in:
Tee KOBAYASHI 2021-12-24 13:31:52 +09:00 committed by Henrik Grimler
parent 3aca178a07
commit f820729792
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 23 additions and 0 deletions

12
packages/stoken/build.sh Normal file
View 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
}

View 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);