new package: markdown-flashcards

This commit is contained in:
Tee KOBAYASHI 2023-01-07 03:56:55 +09:00 committed by xtkoba
parent 0cbd28c110
commit 82797f81c1
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
TERMUX_PKG_HOMEPAGE=https://github.com/bttger/markdown-flashcards
TERMUX_PKG_DESCRIPTION="Small CLI app to learn with flashcards and spaced repetition"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0.0
TERMUX_PKG_SRCURL=https://github.com/bttger/markdown-flashcards/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0c46df16a4cd69caa5feb7adf04593faace1be11c56d5a27c9376d2d7ef499e2
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_golang
go mod init || :
go mod tidy
}
termux_step_make() {
go build -o mdfc ./cmd
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin mdfc
}