Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new package: tget #1065

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tur/tget/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
TERMUX_PKG_HOMEPAGE=https://github.com/sweetbbak/tget
TERMUX_PKG_DESCRIPTION="An open source Go backend"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.1"
TERMUX_PKG_SRCURL="https://github.com/sweetbbak/tget/archive/refs/tags/V${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=4df1b21a17de415aa380e30399809182a0bcb6b853b7a26633cefa00709781b4
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make()
{
export CGO_ENABLED=1
termux_setup_golang
go build -o tget
}
termux_step_make_install(){
install -m700 tget "${TERMUX_PREFIX}"/bin/tget
}