void-packages/srcpkgs/youtube-dl/template
2020-11-20 15:45:04 -05:00

33 lines
967 B
Bash

# Template file for 'youtube-dl'
pkgname=youtube-dl
version=2020.11.19
revision=1
wrksrc="${pkgname}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools"
checkdepends="flake8 python3-nose"
short_desc="CLI program to download videos from YouTube and other sites"
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
license="Unlicense"
homepage="https://yt-dl.org"
changelog="https://raw.githubusercontent.com/ytdl-org/youtube-dl/master/ChangeLog"
distfiles="${homepage}/downloads/latest/${pkgname}-${version}.tar.gz"
checksum=f8c14d9eb2fd8fe7242de8b96f2c918810867c518a162405644f483dcd14be9e
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
}