mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
youtube-dl: use alternatives
This commit is contained in:
parent
01a4df7458
commit
15d7c579f1
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'youtube-dl'
|
||||
pkgname=youtube-dl
|
||||
version=2016.04.24
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
wrksrc="${pkgname}"
|
||||
|
@ -15,14 +15,13 @@ homepage="http://rg3.github.com/youtube-dl/"
|
|||
license="Public Domain"
|
||||
distfiles="https://yt-dl.org/downloads/${version}/${pkgname}-${version}.tar.gz"
|
||||
checksum=9ca83ae9cf783b3d9a231611ef5e446fa61fa77d0f4c9d0545895e6ce691321f
|
||||
replaces="python-youtube-dl<2016.04.06_2"
|
||||
alternatives="youtube_dl:youtube_dl:/usr/bin/youtube-dl2.7"
|
||||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/usr/etc
|
||||
vinstall ${pkgname}.bash-completion 644 usr/share/bash-completion/completions ${pkgname}
|
||||
vinstall ${pkgname}.zsh 644 usr/share/zsh/site-functions _${pkgname}
|
||||
vinstall ${pkgname}.fish 644 usr/share/fish/completions ${pkgname}
|
||||
vbin build-3.4/scripts-3.4/youtube-dl youtube-dl3.4
|
||||
}
|
||||
|
||||
python3.4-youtube-dl_package() {
|
||||
|
@ -30,6 +29,7 @@ python3.4-youtube-dl_package() {
|
|||
depends="python3.4"
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="youtube_dl"
|
||||
alternatives="youtube_dl:youtube_dl:/usr/bin/youtube-dl3.4"
|
||||
short_desc="${short_desc/2/3.4}"
|
||||
pkg_install() {
|
||||
vmove usr/bin/youtube-dl3.4
|
||||
|
|
Loading…
Add table
Reference in a new issue