pathon-pafy: python-youtube-dl -> youtube-dl
As of 0.5, youtube-dl is an optional dependency again, but recommended. So, leave it as is. Install the ytdl command line tool to the python3.4 flavor too.
This commit is contained in:
parent
9e11026c15
commit
ee1d97a742
@ -1,14 +1,14 @@
|
|||||||
# Template file for 'python-pafy'
|
# Template file for 'python-pafy'
|
||||||
pkgname=python-pafy
|
pkgname=python-pafy
|
||||||
version=0.5.0
|
version=0.5.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="pafy-${version}"
|
wrksrc="pafy-${version}"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
pycompile_module="pafy"
|
pycompile_module="pafy"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
depends="python-youtube-dl"
|
depends="youtube-dl"
|
||||||
short_desc="Python2 library to download YouTube content and retrieve metadata"
|
short_desc="Python2 library to download YouTube content and retrieve metadata"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="LGPL-3"
|
license="LGPL-3"
|
||||||
@ -16,13 +16,18 @@ homepage="https://github.com/np1/pafy"
|
|||||||
distfiles="https://github.com/np1/pafy/archive/v${version}.tar.gz"
|
distfiles="https://github.com/np1/pafy/archive/v${version}.tar.gz"
|
||||||
checksum=f69709e07e7612eb57c3c9565c76fa5c3c44a1e232b8b1803892aa0828df53e3
|
checksum=f69709e07e7612eb57c3c9565c76fa5c3c44a1e232b8b1803892aa0828df53e3
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vbin build-3.4/scripts-3.4/ytdl ytdl3.4
|
||||||
|
}
|
||||||
|
|
||||||
python3.4-pafy_package() {
|
python3.4-pafy_package() {
|
||||||
short_desc="${short_desc/2/3/}"
|
|
||||||
depends="python3.4-youtube-dl"
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="pafy"
|
pycompile_module="pafy"
|
||||||
|
depends="python3.4-youtube-dl"
|
||||||
|
short_desc="${short_desc/2/3.4/}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/bin/ytdl3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user