new package: no-more-secrets (#7748)
This commit is contained in:
parent
6a32b2ba20
commit
12cf69e3e9
23
packages/no-more-secrets/Makefile.patch
Normal file
23
packages/no-more-secrets/Makefile.patch
Normal file
@ -0,0 +1,23 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS ?= -Wextra -Wall -O2
|
||||
+LDFLAGS ?= -lncursesw
|
||||
|
||||
.PHONY: all install uninstall clean
|
||||
|
||||
@@ -28,10 +29,10 @@
|
||||
all-ncurses: nms-ncurses sneakers-ncurses
|
||||
|
||||
nms-ncurses: $(OBJ)/input.o $(OBJ)/error.o $(OBJ)/nmscharset.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/nms.o | $(BIN)
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/nms $^ -lncursesw
|
||||
+ $(CC) $(CFLAGS) -o $(BIN)/nms $^ $(LDFLAGS)
|
||||
|
||||
sneakers-ncurses: $(OBJ)/nmscharset.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/sneakers.o | $(BIN)
|
||||
- $(CC) $(CFLAGS) -o $(BIN)/sneakers $^ -lncursesw
|
||||
+ $(CC) $(CFLAGS) -o $(BIN)/sneakers $^ $(LDFLAGS)
|
||||
|
||||
$(OBJ)/%.o: $(SRC)/%.c | $(OBJ)
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
15
packages/no-more-secrets/build.sh
Normal file
15
packages/no-more-secrets/build.sh
Normal file
@ -0,0 +1,15 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/bartobri/no-more-secrets
|
||||
TERMUX_PKG_DESCRIPTION="This project provides a command line tool called nms that recreates the famous data decryption effect."
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=1.0.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/bartobri/no-more-secrets/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=4422e59bb3cf62bca3c73d1fdae771b83aab686cd044f73fe14b1b9c2af1cb1b
|
||||
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_EXTRA_MAKE_ARGS="all-ncurses"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
CFLAGS+=" $(pkg-config --cflags ncurses)"
|
||||
LDFLAGS+=" $(pkg-config --libs ncurses)"
|
||||
}
|
Loading…
Reference in New Issue
Block a user