31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://boxes.thomasjensen.com/
|
|
TERMUX_PKG_DESCRIPTION="A command line filter program which draws ASCII art boxes around your input text"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.3.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/ascii-boxes/boxes/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=e226b4ff91e1260fc80e8312b39cde5a783b96e9f248530eae941b7f1bf6342a
|
|
TERMUX_PKG_DEPENDS="libunistring, ncurses, pcre2"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_CONFFILES="
|
|
share/boxes/boxes-config
|
|
"
|
|
|
|
termux_step_make() {
|
|
make -j $TERMUX_MAKE_PROCESSES \
|
|
CC="$CC" \
|
|
CFLAGS_ADDTL="$CFLAGS $CPPFLAGS" \
|
|
LDFLAGS_ADDTL="$LDFLAGS"
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t $TERMUX_PREFIX/bin out/boxes
|
|
install -Dm600 -t $TERMUX_PREFIX/share/man/man1 doc/boxes.1
|
|
install -Dm600 -t $TERMUX_PREFIX/share/boxes boxes-config
|
|
}
|
|
|
|
# Do not use /archive/ but /archive/refs/tags/ as SRCURL
|
|
# https://github.com/ascii-boxes/boxes/archive/v2.2.1.tar.gz
|
|
# the given path has multiple possibilities: #<Git::Ref:0x00007f3805df9d98>, #<Git::Ref:0x00007f3805df94d8>
|