new package: libaml

This commit is contained in:
Chongyun Lee 2023-10-15 06:25:12 +08:00 committed by Uchiha Kakashi
parent 14b62f648b
commit 35c4810052
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- a/src/thread-pool.c
+++ b/src/thread-pool.c
@@ -97,7 +97,9 @@
sigdelset(&ss, SIGCHLD);
pthread_sigmask(SIG_BLOCK, &ss, NULL);
+#ifndef __ANDROID__
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
+#endif
while (1) {
struct default_work* work = dequeue_work();

8
packages/libaml/build.sh Normal file
View File

@ -0,0 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://github.com/any1/aml
TERMUX_PKG_DESCRIPTION="Andri's Main Loop library"
TERMUX_PKG_LICENSE="ISC"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.3.0"
TERMUX_PKG_SRCURL=https://github.com/any1/aml/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=cba1ca1689d4031faf37bb7a184559106b6d2f462ae8890a9fa16e3022ca1eb0
TERMUX_PKG_AUTO_UPDATE=true