25 lines
836 B
Bash
25 lines
836 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/kkdai/youtube
|
|
TERMUX_PKG_DESCRIPTION="Download youtube video in Golang"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
|
|
TERMUX_PKG_VERSION=2.4.0
|
|
TERMUX_PKG_SRCURL=https://github.com/kkdai/youtube/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=aa5d5de395aa46dd30eda6e08b827fc23d1d1d920640ee6a8ee9a5e33fd7bbe0
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
|
export GOPATH="${TERMUX_PKG_BUILDDIR}"
|
|
mkdir -p "${GOPATH}/src/github.com/kkdai/"
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/kkdai/youtube"
|
|
cd "${GOPATH}/src/github.com/kkdai/youtube/"
|
|
go get -d -v
|
|
cd cmd/youtubedr
|
|
go build .
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/kkdai/youtube/cmd/youtubedr/youtubedr
|
|
}
|