0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 02:26:34 +00:00
Termux Github Actions 5852433afd bump(main/tdl): 0.18.3
This commit has been automatically submitted by Github Actions.
2024-11-29 12:15:28 +00:00

33 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://docs.iyear.me/tdl/
TERMUX_PKG_DESCRIPTION="Telegram downloader/tools written in Golang"
TERMUX_PKG_LICENSE="AGPL-V3"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.18.3"
TERMUX_PKG_SRCURL=https://github.com/iyear/tdl/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=24dda392d0ff96b9ac3e16ed38169f8b5d0697ecc80e6d83809633b19d5f91fc
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() {
termux_setup_golang
go build
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin tdl
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/bash-completion/completions/tdl
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/zsh/site-functions/_tdl
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/fish/vendor_completions.d/tdl.fish
}
termux_step_create_debscripts() {
cat <<-EOF >./postinst
#!${TERMUX_PREFIX}/bin/sh
tdl completion bash > "${TERMUX_PREFIX}/share/bash-completion/completions/tdl"
tdl completion zsh > "${TERMUX_PREFIX}/share/zsh/site-functions/_tdl"
tdl completion fish > "${TERMUX_PREFIX}/share/fish/vendor_completions.d/tdl.fish"
EOF
}