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"
|
2021-08-20 02:25:41 +02:00
|
|
|
TERMUX_PKG_VERSION=2.7.4
|
2021-08-24 21:13:10 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2020-05-09 12:52:19 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/kkdai/youtube/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2021-08-20 02:25:41 +02:00
|
|
|
TERMUX_PKG_SHA256=991b15a0b6941c1bf2c3d691b8b5f2f37b28a041e735813da051cb5a01e38695
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-05-09 12:52:19 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
2020-05-09 13:09:43 +02:00
|
|
|
termux_setup_golang
|
2020-05-09 12:52:19 +02:00
|
|
|
|
2020-05-09 13:09:43 +02:00
|
|
|
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/"
|
2021-07-10 16:00:18 +02:00
|
|
|
go get -d -v
|
2020-08-15 14:17:54 +02:00
|
|
|
cd cmd/youtubedr
|
2020-05-09 13:09:43 +02:00
|
|
|
go build .
|
2020-05-09 12:52:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2020-08-15 14:17:54 +02:00
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/kkdai/youtube/cmd/youtubedr/youtubedr
|
2020-05-09 12:52:19 +02:00
|
|
|
}
|