From 01a4df74587b8e34e34c754bb803a8ed854554b2 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 1 May 2016 00:57:57 +0200 Subject: [PATCH] python-pafy: use alternatives --- srcpkgs/python-pafy/template | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python-pafy/template b/srcpkgs/python-pafy/template index 3cd200588af..c971b8aafe3 100644 --- a/srcpkgs/python-pafy/template +++ b/srcpkgs/python-pafy/template @@ -1,7 +1,7 @@ # Template file for 'python-pafy' pkgname=python-pafy version=0.5.0 -revision=2 +revision=3 wrksrc="pafy-${version}" noarch=yes python_versions="2.7 3.4" @@ -15,10 +15,7 @@ license="LGPL-3" homepage="https://github.com/np1/pafy" distfiles="https://github.com/np1/pafy/archive/v${version}.tar.gz" checksum=f69709e07e7612eb57c3c9565c76fa5c3c44a1e232b8b1803892aa0828df53e3 - -post_install() { - vbin build-3.4/scripts-3.4/ytdl ytdl3.4 -} +alternatives="pafy:ytdl:/usr/bin/ytdl2.7" python3.4-pafy_package() { noarch=yes @@ -26,6 +23,7 @@ python3.4-pafy_package() { pycompile_module="pafy" depends="python3.4-youtube-dl" short_desc="${short_desc/2/3.4/}" + alternatives="pafy:ytdl:/usr/bin/ytdl3.4" pkg_install() { vmove usr/bin/ytdl3.4 vmove usr/lib/python3.4