termux-packages/packages/youtubedr/build.sh

27 lines
851 B
Bash
Raw Normal View History

2020-05-09 12:52:19 +02:00
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"
2020-07-01 02:46:13 +02:00
TERMUX_PKG_VERSION=1.2.2
2020-07-01 19:30:22 +02:00
TERMUX_PKG_REVISION=3
2020-05-09 12:52:19 +02:00
TERMUX_PKG_SRCURL=https://github.com/kkdai/youtube/archive/v${TERMUX_PKG_VERSION}.tar.gz
2020-07-01 02:46:13 +02:00
TERMUX_PKG_SHA256=c9357e0e256f26988c9e4dc59a4bf9724cc24cb2558098627109472214fa2ba0
2020-05-09 12:52:19 +02:00
termux_step_make() {
termux_setup_golang
2020-05-09 12:52:19 +02:00
cd "$TERMUX_PKG_SRCDIR"
2020-07-01 13:57:25 +02:00
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 youtubedr
go build .
2020-05-09 12:52:19 +02:00
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/kkdai/youtube/youtubedr/youtubedr
2020-05-09 12:52:19 +02:00
}