mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
29 lines
1.1 KiB
Bash
29 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://taskwarrior.org
|
|
TERMUX_PKG_DESCRIPTION="Utility for managing your TODO list"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.2.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v${TERMUX_PKG_VERSION}/task-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=1a543ba373a319f924a2242c8e0db9dac2691c4cf654c2d0c6827a06b3b32592
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="libandroid-glob, libc++, libgnutls, libuuid"
|
|
TERMUX_CMAKE_BUILD="Unix Makefiles"
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_rust
|
|
|
|
LDFLAGS+=" -landroid-glob"
|
|
|
|
if [ "$TERMUX_ARCH" = "arm" ]; then
|
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_ANDROID_ARM_MODE.html
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DCMAKE_ANDROID_ARM_MODE=ON"
|
|
fi
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
install -Dm600 -T "$TERMUX_PKG_SRCDIR"/scripts/bash/task.sh \
|
|
$TERMUX_PREFIX/share/bash-completion/completions/task
|
|
install -Dm600 -t $TERMUX_PREFIX/share/fish/vendor_completions.d \
|
|
"$TERMUX_PKG_SRCDIR"/scripts/fish/task.fish
|
|
}
|