diff --git a/srcpkgs/python-youtube-dl b/srcpkgs/python-youtube-dl new file mode 120000 index 00000000000..067dc06bf49 --- /dev/null +++ b/srcpkgs/python-youtube-dl @@ -0,0 +1 @@ +youtube-dl \ No newline at end of file diff --git a/srcpkgs/python3.4-youtube-dl b/srcpkgs/python3.4-youtube-dl new file mode 120000 index 00000000000..067dc06bf49 --- /dev/null +++ b/srcpkgs/python3.4-youtube-dl @@ -0,0 +1 @@ +youtube-dl \ No newline at end of file diff --git a/srcpkgs/youtube-dl/template b/srcpkgs/youtube-dl/template index 00bdf708854..75a65d7168b 100644 --- a/srcpkgs/youtube-dl/template +++ b/srcpkgs/youtube-dl/template @@ -1,12 +1,13 @@ # Template file for 'youtube-dl' pkgname=youtube-dl version=2016.04.01 -revision=1 +revision=2 noarch=yes build_style=python-module wrksrc="${pkgname}" -hostmakedepends="python" -depends="python" +hostmakedepends="python python3.4" +depends="python python-youtube-dl" +python_versions="2.7 3.4" pycompile_module="youtube_dl" short_desc="Small CLI program to download videos from YouTube and other sites" maintainer="Juan RP " @@ -21,3 +22,24 @@ post_install() { vinstall ${pkgname}.zsh 644 usr/share/zsh/site-functions _${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 + } +} +