void-packages/srcpkgs/youtube-dl/template

33 lines
932 B
Bash

# Template file for 'youtube-dl'
pkgname=youtube-dl
version=2021.12.17
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="flake8 python3-nose"
short_desc="CLI program to download videos from YouTube and other sites"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Unlicense"
homepage="https://yt-dl.org"
changelog="https://raw.githubusercontent.com/ytdl-org/youtube-dl/master/ChangeLog"
distfiles="${homepage}/downloads/${version}/${pkgname}-${version}.tar.gz"
checksum=9f3b99c8b778455165b4525f21505e86c7ff565f3ac319e19733d810194135df
do_check() {
PYTHON=/usr/bin/python3 make offlinetest
}
post_install() {
rm -rf ${DESTDIR}/usr/etc
vcompletion youtube-dl.bash-completion bash
vcompletion youtube-dl.zsh zsh
vcompletion youtube-dl.fish fish
}
python3-youtube-dl_package() {
depends="youtube-dl"
short_desc+=" - transitional dummy package"
build_style=meta
}