void-packages/srcpkgs/python-pafy/template
maxice8 68d6a260f9 python-pafy: switch upstream to mps-youtube
original upstream is dead, the repo is removed from github, mps-youtube
uses it and has adopted it.
2018-10-12 07:48:24 -03:00

29 lines
883 B
Bash

# Template file for 'python-pafy'
pkgname=python-pafy
version=0.5.4
revision=1
noarch=yes
wrksrc="pafy-${version}"
build_style=python-module
pycompile_module="pafy"
hostmakedepends="python-setuptools python3-setuptools youtube-dl python3-youtube-dl"
depends="youtube-dl"
short_desc="Python2 library to download YouTube content and retrieve metadata"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-3"
homepage="https://github.com/mps-youtube/pafy"
distfiles="https://github.com/mps-youtube/pafy/archive/v${version}.tar.gz"
checksum=a2f9fe7c6175264993190081e1558516b2f2b5987f13a581a55cd9d838df973b
alternatives="pafy:ytdl:/usr/bin/ytdl2"
python3-pafy_package() {
noarch=yes
pycompile_module="pafy"
depends="python3-youtube-dl"
short_desc="${short_desc/2/3/}"
alternatives="pafy:ytdl:/usr/bin/ytdl3"
pkg_install() {
vmove usr/bin/ytdl3
vmove usr/lib/python3*
}
}