youtube-dl: add python(3.4)-youtube-dl subpackage

Fixes #2722
This commit is contained in:
Michael Gehring 2016-04-02 16:14:46 +02:00
parent 24cd0bfc75
commit 519ad4123c
3 changed files with 27 additions and 3 deletions

1
srcpkgs/python-youtube-dl Symbolic link
View File

@ -0,0 +1 @@
youtube-dl

View File

@ -0,0 +1 @@
youtube-dl

View File

@ -1,12 +1,13 @@
# Template file for 'youtube-dl' # Template file for 'youtube-dl'
pkgname=youtube-dl pkgname=youtube-dl
version=2016.04.01 version=2016.04.01
revision=1 revision=2
noarch=yes noarch=yes
build_style=python-module build_style=python-module
wrksrc="${pkgname}" wrksrc="${pkgname}"
hostmakedepends="python" hostmakedepends="python python3.4"
depends="python" depends="python python-youtube-dl"
python_versions="2.7 3.4"
pycompile_module="youtube_dl" pycompile_module="youtube_dl"
short_desc="Small CLI program to download videos from YouTube and other sites" short_desc="Small CLI program to download videos from YouTube and other sites"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -21,3 +22,24 @@ post_install() {
vinstall ${pkgname}.zsh 644 usr/share/zsh/site-functions _${pkgname} vinstall ${pkgname}.zsh 644 usr/share/zsh/site-functions _${pkgname}
vinstall ${pkgname}.fish 644 usr/share/fish/completions ${pkgname} vinstall ${pkgname}.fish 644 usr/share/fish/completions ${pkgname}
} }
python-youtube-dl_package() {
short_desc+=" - Python2 module"
noarch=yes
pycompile_version="2.7"
pycompile_module="youtube_dl"
pkg_install() {
vmove usr/lib/python2.7
}
}
python3.4-youtube-dl_package() {
short_desc+=" - Python3.4 module"
noarch=yes
pycompile_version="3.4"
pycompile_module="youtube_dl"
pkg_install() {
vmove usr/lib/python3.4
}
}