37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'python-pafy'
|
|
pkgname=python-pafy
|
|
version=0.5.3.1
|
|
revision=1
|
|
wrksrc="pafy-${version}"
|
|
noarch=yes
|
|
pycompile_module="pafy"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
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/np1/pafy"
|
|
distfiles="https://github.com/np1/pafy/archive/v${version}.tar.gz"
|
|
checksum=512f3fdca213d1b55e05d9eaf3440e7ecdeadf9b517778af6e101910da3591e0
|
|
alternatives="pafy:ytdl:/usr/bin/ytdl2"
|
|
|
|
python3-pafy_package() {
|
|
noarch=yes
|
|
pycompile_module="pafy"
|
|
replaces="python3.4-pafy>=0"
|
|
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*
|
|
}
|
|
}
|
|
python3.4-pafy_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pafy>=${version}_${revision}"
|
|
}
|